首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

代码片段

2013-01-27 
代码片段~小记遇见过的代码小片段符号分隔拼接字符串@Overridepublic boolean equals(Object obj) {if (th

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

符号分隔拼接字符串

  @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);  }

热点排行