@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetLabels()) ? 131071 : 524287); if (isSetLabels()) hashCode = hashCode * 8191 + labels.hashCode(); return hashCode; }
public boolean equals(TAuthorization that) { if (that == null) return false; if (this == that) return true; boolean this_present_labels = true && this.isSetLabels(); boolean that_present_labels = true && that.isSetLabels(); if (this_present_labels || that_present_labels) { if (!(this_present_labels && that_present_labels)) return false; if (!this.labels.equals(that.labels)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public TAuthorization(TAuthorization other) { if (other.isSetLabels()) { java.util.List<java.lang.String> __this__labels = new java.util.ArrayList<java.lang.String>(other.labels); this.labels = __this__labels; } }
/** 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 LABELS: return isSetLabels(); } throw new java.lang.IllegalStateException(); }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("TAuthorization("); boolean first = true; if (isSetLabels()) { sb.append("labels:"); if (this.labels == null) { sb.append("null"); } else { sb.append(this.labels); } first = false; } sb.append(")"); return sb.toString(); }
@Override public int compareTo(TAuthorization other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetLabels()).compareTo(other.isSetLabels()); if (lastComparison != 0) { return lastComparison; } if (isSetLabels()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.labels, other.labels); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TAuthorization struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLabels()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetLabels()) { { oprot.writeI32(struct.labels.size()); for (java.lang.String _iter12 : struct.labels) { oprot.writeString(_iter12); } } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TAuthorization struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.labels != null) { if (struct.isSetLabels()) { oprot.writeFieldBegin(LABELS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.labels.size())); for (java.lang.String _iter11 : struct.labels) { oprot.writeString(_iter11); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public boolean equals(TAuthorization that) { if (that == null) return false; boolean this_present_labels = true && this.isSetLabels(); boolean that_present_labels = true && that.isSetLabels(); if (this_present_labels || that_present_labels) { if (!(this_present_labels && that_present_labels)) return false; if (!this.labels.equals(that.labels)) return false; } return true; }
public boolean equals(TAuthorization that) { if (that == null) return false; boolean this_present_labels = true && this.isSetLabels(); boolean that_present_labels = true && that.isSetLabels(); if (this_present_labels || that_present_labels) { if (!(this_present_labels && that_present_labels)) return false; if (!this.labels.equals(that.labels)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public TAuthorization(TAuthorization other) { if (other.isSetLabels()) { List<String> __this__labels = new ArrayList<String>(other.labels); this.labels = __this__labels; } }
/** * Performs a deep copy on <i>other</i>. */ public TAuthorization(TAuthorization other) { if (other.isSetLabels()) { List<String> __this__labels = new ArrayList<String>(other.labels); this.labels = __this__labels; } }
/** 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 LABELS: return isSetLabels(); } throw new IllegalStateException(); }
/** 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 LABELS: return isSetLabels(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_labels = true && (isSetLabels()); list.add(present_labels); if (present_labels) list.add(labels); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_labels = true && (isSetLabels()); list.add(present_labels); if (present_labels) list.add(labels); return list.hashCode(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TAuthorization("); boolean first = true; if (isSetLabels()) { sb.append("labels:"); if (this.labels == null) { sb.append("null"); } else { sb.append(this.labels); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TAuthorization("); boolean first = true; if (isSetLabels()) { sb.append("labels:"); if (this.labels == null) { sb.append("null"); } else { sb.append(this.labels); } first = false; } sb.append(")"); return sb.toString(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TAuthorization struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetLabels()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetLabels()) { { oprot.writeI32(struct.labels.size()); for (String _iter12 : struct.labels) { oprot.writeString(_iter12); } } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TAuthorization struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetLabels()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetLabels()) { { oprot.writeI32(struct.labels.size()); for (String _iter12 : struct.labels) { oprot.writeString(_iter12); } } } }