/** 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 MAX: return isSetMax(); case TOTAL: return isSetTotal(); case FREE: return isSetFree(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetTotal()).compareTo(other.isSetTotal()); if (lastComparison != 0) { return lastComparison; if (isSetTotal()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total, other.total); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, MemoryUsage struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMax()) { optionals.set(0); } if (struct.isSetTotal()) { optionals.set(1); } if (struct.isSetFree()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetMax()) { oprot.writeI64(struct.max); } if (struct.isSetTotal()) { oprot.writeI64(struct.total); } if (struct.isSetFree()) { oprot.writeI64(struct.free); } }