读书人

代码片段

发布时间: 2013-01-27 13:56:15 作者: rapoo

代码片段~
小记遇见过的代码小片段

符号分隔拼接字符串

  @Override  public boolean equals(Object obj) {    if (this == obj) {      return true;    }    if (obj == null) {      return false;    }    if (getClass() != obj.getClass()) {      return false;    }    Pattern other = (Pattern) obj;    // expensive check done only if length and support matches        return length == other.length && support == other.support && Arrays.equals(pattern, other.pattern);  }

读书人网 >编程

热点推荐