Exemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (obj == this) {
     return true;
   }
   if (obj != null && obj.getClass() == this.getClass()) {
     SuccessResult<?> other = (SuccessResult<?>) obj;
     return JodaBeanUtils.equal(getValue(), other.getValue());
   }
   return false;
 }
Exemplo n.º 2
0
 /**
  * Restricted copy constructor.
  *
  * @param beanToCopy the bean to copy from, not null
  */
 private Builder(SuccessResult<T> beanToCopy) {
   this._value = beanToCopy.getValue();
 }