Example #1
0
 @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;
 }
Example #2
0
 public boolean equals(ComponentObject other) {
   return other != null
       && getSetField() == other.getSetField()
       && getFieldValue().equals(other.getFieldValue());
 }
Example #3
0
 public static ComponentObject java_object(JavaObject value) {
   ComponentObject x = new ComponentObject();
   x.set_java_object(value);
   return x;
 }
Example #4
0
 public static ComponentObject shell(ShellComponent value) {
   ComponentObject x = new ComponentObject();
   x.set_shell(value);
   return x;
 }
Example #5
0
 public static ComponentObject serialized_java(byte[] value) {
   ComponentObject x = new ComponentObject();
   x.set_serialized_java(ByteBuffer.wrap(Arrays.copyOf(value, value.length)));
   return x;
 }
Example #6
0
 public static ComponentObject serialized_java(ByteBuffer value) {
   ComponentObject x = new ComponentObject();
   x.set_serialized_java(value);
   return x;
 }