@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 static Object getSetComponentObject(ComponentObject obj) { if (obj.getSetField() == ComponentObject._Fields.SERIALIZED_JAVA) { return Utils.javaDeserialize(obj.get_serialized_java(), Serializable.class); } else if (obj.getSetField() == ComponentObject._Fields.JAVA_OBJECT) { return obj.get_java_object(); } else { return obj.get_shell(); } }
public boolean equals(ComponentObject other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
public static ComponentObject java_object(JavaObject value) { ComponentObject x = new ComponentObject(); x.set_java_object(value); return x; }
public static ComponentObject shell(ShellComponent value) { ComponentObject x = new ComponentObject(); x.set_shell(value); return x; }
public static ComponentObject serialized_java(byte[] value) { ComponentObject x = new ComponentObject(); x.set_serialized_java(ByteBuffer.wrap(Arrays.copyOf(value, value.length))); return x; }
public static ComponentObject serialized_java(ByteBuffer value) { ComponentObject x = new ComponentObject(); x.set_serialized_java(value); return x; }