@Override public int compareTo(ComponentObject other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public boolean equals(ComponentObject other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { list.add(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { list.add(value); } } return list.hashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
public boolean equals(ComponentObject other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
@Override public int hashCode() { HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(this.getClass().getName()); org.apache.thrift7.TFieldIdEnum setField = getSetField(); if (setField != null) { hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift7.TEnum) { hcb.append(((org.apache.thrift7.TEnum)getFieldValue()).getValue()); } else { hcb.append(value); } } return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
public ShellComponent get_shell() { if (getSetField() == _Fields.SHELL) { return (ShellComponent)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'shell' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public JavaObject get_java_object() { if (getSetField() == _Fields.JAVA_OBJECT) { return (JavaObject)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'java_object' because union is currently set to " + getFieldDesc(getSetField()).name); } }
@Override public int compareTo(ComponentObject other) { int lastComparison = org.apache.thrift7.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift7.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public ShellComponent get_shell() { if (getSetField() == _Fields.SHELL) { return (ShellComponent)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'shell' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public ByteBuffer buffer_for_serialized_java() { if (getSetField() == _Fields.SERIALIZED_JAVA) { return (ByteBuffer)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'serialized_java' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public ByteBuffer buffer_for_serialized_java() { if (getSetField() == _Fields.SERIALIZED_JAVA) { return org.apache.thrift.TBaseHelper.copyBinary((ByteBuffer)getFieldValue()); } else { throw new RuntimeException("Cannot get field 'serialized_java' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public JavaObject get_java_object() { if (getSetField() == _Fields.JAVA_OBJECT) { return (JavaObject)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'java_object' because union is currently set to " + getFieldDesc(getSetField()).name); } }
@Override public int compareTo(ComponentObject other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
@Override public int compareTo(ComponentObject other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public ShellComponent get_shell() { if (getSetField() == _Fields.SHELL) { return (ShellComponent)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'shell' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public ShellComponent get_shell() { if (getSetField() == _Fields.SHELL) { return (ShellComponent)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'shell' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public JavaObject get_java_object() { if (getSetField() == _Fields.JAVA_OBJECT) { return (JavaObject)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'java_object' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public JavaObject get_java_object() { if (getSetField() == _Fields.JAVA_OBJECT) { return (JavaObject)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'java_object' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public ByteBuffer buffer_for_serialized_java() { if (getSetField() == _Fields.SERIALIZED_JAVA) { return (ByteBuffer)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'serialized_java' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public ByteBuffer buffer_for_serialized_java() { if (getSetField() == _Fields.SERIALIZED_JAVA) { return org.apache.thrift.TBaseHelper.copyBinary((ByteBuffer)getFieldValue()); } else { throw new RuntimeException("Cannot get field 'serialized_java' because union is currently set to " + getFieldDesc(getSetField()).name); } }