コード例 #1
0
  /** INTERNAL: */
  @Override
  public boolean equals(Object objectToCompare) {
    if (objectToCompare instanceof AccessMethodsMetadata) {
      AccessMethodsMetadata accessMethods = (AccessMethodsMetadata) objectToCompare;

      if (!valuesMatch(getMethodName, accessMethods.getGetMethodName())) {
        return false;
      }

      return valuesMatch(setMethodName, accessMethods.getSetMethodName());
    }

    return false;
  }
コード例 #2
0
 /** INTERNAL: */
 public AccessMethodsMetadata clone() {
   AccessMethodsMetadata accessMethods = new AccessMethodsMetadata();
   accessMethods.setGetMethodName(getGetMethodName());
   accessMethods.setSetMethodName(getSetMethodName());
   return accessMethods;
 }