/** * Performs a deep copy on <i>other</i>. */ public Credentials(Credentials other) { if (other.is_set_creds()) { java.util.Map<java.lang.String,java.lang.String> __this__creds = new java.util.HashMap<java.lang.String,java.lang.String>(other.creds); this.creds = __this__creds; } if (other.is_set_topoOwner()) { this.topoOwner = other.topoOwner; } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_creds()) ? 131071 : 524287); if (is_set_creds()) hashCode = hashCode * 8191 + creds.hashCode(); hashCode = hashCode * 8191 + ((is_set_topoOwner()) ? 131071 : 524287); if (is_set_topoOwner()) hashCode = hashCode * 8191 + topoOwner.hashCode(); return hashCode; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case CREDS: return is_set_creds(); case TOPO_OWNER: return is_set_topoOwner(); } throw new java.lang.IllegalStateException(); }
public boolean equals(Credentials that) { if (that == null) return false; if (this == that) return true; boolean this_present_creds = true && this.is_set_creds(); boolean that_present_creds = true && that.is_set_creds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_topoOwner = true && this.is_set_topoOwner(); boolean that_present_topoOwner = true && that.is_set_topoOwner(); if (this_present_topoOwner || that_present_topoOwner) { if (!(this_present_topoOwner && that_present_topoOwner)) return false; if (!this.topoOwner.equals(that.topoOwner)) return false; } return true; }
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_creds()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'creds' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int compareTo(Credentials other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_creds()).compareTo(other.is_set_creds()); if (lastComparison != 0) { return lastComparison; } if (is_set_creds()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_topoOwner()).compareTo(other.is_set_topoOwner()); if (lastComparison != 0) { return lastComparison; } if (is_set_topoOwner()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.topoOwner, other.topoOwner); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(Credentials that) { if (that == null) return false; boolean this_present_creds = true && this.is_set_creds(); boolean that_present_creds = true && that.is_set_creds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public Credentials(Credentials other) { if (other.is_set_creds()) { Map<String,String> __this__creds = new HashMap<String,String>(other.creds); this.creds = __this__creds; } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return is_set_creds(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_creds = true && (is_set_creds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); }
@Override public int compareTo(Credentials other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_creds()).compareTo(other.is_set_creds()); if (lastComparison != 0) { return lastComparison; } if (is_set_creds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_creds()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'creds' is unset! Struct:" + toString()); } // check for sub-struct validity }