2009-09-03から1日間の記事一覧
NULLの可能性のあるオブジェクトをeqaulsで比較するとき、 昔は、ごちゃごちゃとif文を書いたものだ。 でも今は。。。 public static <T> boolean eqauls(T t1,T t2){ if (t1==null && t2==null) return true; if (t1 != null && t2 != null) return t1.equals(</t>…
NULLの可能性のあるオブジェクトをeqaulsで比較するとき、 昔は、ごちゃごちゃとif文を書いたものだ。 でも今は。。。 public static <T> boolean eqauls(T t1,T t2){ if (t1==null && t2==null) return true; if (t1 != null && t2 != null) return t1.equals(</t>…