Example #1
0
 @Override
 public MLongInput clone(boolean cloneWithValue) {
   MLongInput copy =
       new MLongInput(
           getName(), isSensitive(), getEditable(), getOverrides(), getCloneOfValidators());
   copy.setPersistenceId(getPersistenceId());
   if (cloneWithValue) {
     copy.setValue(this.getValue());
   }
   return copy;
 }
Example #2
0
  @Override
  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }

    if (!(other instanceof MLongInput)) {
      return false;
    }

    MLongInput i = (MLongInput) other;
    return getName().equals(i.getName());
  }