/** 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 FORCE_GC: return isSetForceGC(); } throw new IllegalStateException(); }
@Override public int compareTo(getMemoryUsage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetForceGC()).compareTo(other.isSetForceGC()); if (lastComparison != 0) { return lastComparison; } if (isSetForceGC()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.forceGC, other.forceGC); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getMemoryUsage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetForceGC()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetForceGC()) { oprot.writeBool(struct.forceGC); } }