Examples of Sone


Examples of net.pterodactylus.sone.data.Sone

   *            {@code false} to return null if none exists
   * @return The Sone with the given ID, or {@code null}
   */
  public Sone getLocalSone(String id, boolean create) {
    synchronized (sones) {
      Sone sone = sones.get(id);
      if ((sone == null) && create) {
        sone = new SoneImpl(id, true);
        sones.put(id, sone);
      }
      if ((sone != null) && !sone.isLocal()) {
        sone = new SoneImpl(id, true);
        sones.put(id, sone);
      }
      return sone;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.