示例#1
0
  public Entity getByUUID(UUID uuid) {
    for (Iterator iterator = getAll().iterator(); iterator.hasNext(); ) {
      Entity entity = (Entity) iterator.next();
      if (entity.getUuid() != null && uuid != null && entity.getUuid().equals(uuid)) {
        return entity;
      }
    }

    return null;
  }