/** * Performs a deep copy on <i>other</i>. */ public TStringValue(TStringValue other) { if (other.isSetValue()) { this.value = other.value; } }
/** * Performs a deep copy on <i>other</i>. */ public TStringValue(TStringValue other) { if (other.isSetValue()) { this.value = other.value; } }
/** * Performs a deep copy on <i>other</i>. */ public TStringValue(TStringValue other) { if (other.isSetValue()) { this.value = other.value; } }
/** 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 VALUE: return isSetValue(); } 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 VALUE: return isSetValue(); } 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 VALUE: return isSetValue(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); builder.append(present_value); if (present_value) builder.append(value); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); builder.append(present_value); if (present_value) builder.append(value); return builder.toHashCode(); }
private static String getStringValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return tStringValue.getValue(); } return null; }
private static BigDecimal getBigDecimalValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return new BigDecimal(tStringValue.getValue()); } return null; }
private static Date getDateValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return Date.valueOf(tStringValue.getValue()); } return null; }
private static Date getDateValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return Date.valueOf(tStringValue.getValue()); } return null; }
private static byte[] getBinaryValue(TStringValue tString) { if (tString.isSetValue()) { return tString.getValue().getBytes(); } return null; }
private static Date getDateValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return Date.valueOf(tStringValue.getValue()); } return null; }
private static Date getDateValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return Date.valueOf(tStringValue.getValue()); } return null; }
private static String getStringValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return tStringValue.getValue(); } return null; }
private static Timestamp getTimestampValue(TStringValue tStringValue) { if (tStringValue.isSetValue()) { return Timestamp.valueOf(tStringValue.getValue()); } return null; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TStringValue struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetValue()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetValue()) { oprot.writeString(struct.value); } }
private static byte[] getBinaryValue(TStringValue tString) { if (tString.isSetValue()) { return tString.getValue().getBytes(); } return null; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TStringValue struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetValue()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetValue()) { oprot.writeString(struct.value); } }