Ejemplo n.º 1
0
 /**
  * 建築者名と看板名から評価看板を返す
  *
  * @param creator
  * @param signName
  * @return LikeSign or null
  */
 public static LikeSign getLikeSignByCreatorAndName(String creator, String signName) {
   for (LikeSign ls : signs.values()) {
     if (ls.getCreator().equalsIgnoreCase(creator) && ls.getName().equalsIgnoreCase(signName)) {
       return ls;
     }
   }
   return null;
 }
Ejemplo n.º 2
0
  /**
   * 建築者の評価看板リストを返す
   *
   * @param creator
   * @return List<LikeSign>
   */
  public static List<LikeSign> getLikeSignsByCreator(String creator) {
    List<LikeSign> ret = new ArrayList<LikeSign>();

    for (LikeSign ls : signs.values()) {
      if (ls.getCreator().equalsIgnoreCase(creator)) {
        ret.add(ls);
      }
    }

    return ret;
  }