code: public static boolean check(Tile tile1, Tile tile2, Tile tile3) {
  
          //Typeが違う場合false
          if (tile1.getType() != tile2.getType() || tile2.getType() != tile3.getType()) {
              return false;
          }
  
          //字牌だった場合false
          if (tile1.getNumber() == 0 || tile2.getNumber() == 0 || tile3.getNumber() == 0) {
              return false;
          }
  
          //ソートする
          Tile s;
          if (tile1.getNumber() > tile2.getNumber()) {
              s = tile1;
              tile1 = tile2;
              tile2 = s;
          }
          if (tile1.getNumber() > tile3.getNumber()) {
              s = tile1;
              tile1 = tile3;
              tile3 = s;
          }
          if (tile2.getNumber() > tile3.getNumber()) {
              s = tile2;
              tile2 = tile3;
              tile3 = s;
          }
  
          //判定
          return tile1.getNumber() + 1 == tile2.getNumber() && tile2.getNumber() + 1 == tile3.getNumber();
      }
docs: 順子かどうかの判定を行ないます
  
  @param tile1 1枚目
  @param tile2 2枚目
  @param tile3 3枚目
  @return 順子であればtrue 順子でなければfalse