@Override public boolean equals(Object obj) { if ( this == obj ) return true; if ( obj == null ) return false; if ( !(obj instanceof DelegationImpl) ) return false; DelegationImpl other = (DelegationImpl) obj; if ( allowedToDelegate == null ) { if ( other.allowedToDelegate != null ) return false; } else if ( !allowedToDelegate.equals( other.allowedToDelegate ) ) return false; return CollectionUtils.equals( delegates, other.delegates ); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((allowedToDelegate == null) ? 0 : allowedToDelegate.hashCode()); result = prime * result + CollectionUtils.hashCode( delegates ); return result; }
public void writeExternal(ObjectOutput out) throws IOException { if ( allowedToDelegate != null ) { out.writeBoolean( true ); out.writeUTF( allowedToDelegate.toString() ); } else { out.writeBoolean( false ); } CollectionUtils.writeOrganizationalEntityList( delegates, out ); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { if ( in.readBoolean() ) { allowedToDelegate = AllowedToDelegate.valueOf( in.readUTF() ); } delegates = CollectionUtils.readOrganizationalEntityList( in ); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { if ( in.readBoolean() ) { allowedToDelegate = AllowedToDelegate.valueOf( in.readUTF() ); } delegates = CollectionUtils.readOrganizationalEntityList( in ); }
@Override public boolean equals(Object obj) { if ( this == obj ) return true; if ( obj == null ) return false; if ( !(obj instanceof DelegationImpl) ) return false; DelegationImpl other = (DelegationImpl) obj; if ( allowedToDelegate == null ) { if ( other.allowedToDelegate != null ) return false; } else if ( !allowedToDelegate.equals( other.allowedToDelegate ) ) return false; return CollectionUtils.equals( delegates, other.delegates ); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((allowedToDelegate == null) ? 0 : allowedToDelegate.hashCode()); result = prime * result + CollectionUtils.hashCode( delegates ); return result; }
public void writeExternal(ObjectOutput out) throws IOException { if ( allowedToDelegate != null ) { out.writeBoolean( true ); out.writeUTF( allowedToDelegate.toString() ); } else { out.writeBoolean( false ); } CollectionUtils.writeOrganizationalEntityList( delegates, out ); }