示例#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;
 }
示例#2
0
 public boolean equals(ComponentObject other) {
   return other != null
       && getSetField() == other.getSetField()
       && getFieldValue().equals(other.getFieldValue());
 }
示例#3
0
 public static ComponentObject java_object(JavaObject value) {
   ComponentObject x = new ComponentObject();
   x.set_java_object(value);
   return x;
 }
示例#4
0
 public static ComponentObject shell(ShellComponent value) {
   ComponentObject x = new ComponentObject();
   x.set_shell(value);
   return x;
 }
示例#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;
 }
示例#6
0
 public static ComponentObject serialized_java(ByteBuffer value) {
   ComponentObject x = new ComponentObject();
   x.set_serialized_java(value);
   return x;
 }