@Test public void testCompareTo() throws Exception { PropertyValueList p1 = PropertyValueList.fromPropertyValues( Lists.newArrayList(PropertyValue.create(1L), PropertyValue.create(3L)) ); PropertyValueList p2 = PropertyValueList.fromPropertyValues( Lists.newArrayList(PropertyValue.create(1L), PropertyValue.create(3L)) ); PropertyValueList p3 = PropertyValueList.fromPropertyValues( Lists.newArrayList(PropertyValue.create(1L), PropertyValue.create(4L)) ); assertEquals(p1.compareTo(p2), 0); assertTrue(p1.compareTo(p3) < 0); assertTrue(p3.compareTo(p1) > 0); }
@Override public int compareTo(PropertyValueList o) { return Bytes.compareTo(bytes, o.bytes); }
PropertyValueList implements Iterable<PropertyValue>, Serializable, Value, Comparable<PropertyValueList> { @Override public int compareTo(PropertyValueList o) { return Bytes.compareTo(bytes, o.bytes); } }
PropertyValueList implements Iterable<PropertyValue>, Serializable, Value, Comparable<PropertyValueList> { @Override public int compareTo(PropertyValueList o) { return Bytes.compareTo(bytes, o.bytes); } PropertyValueList(); private  PropertyValueList(byte[] bytes); }
PropertyValueList implements Iterable<PropertyValue>, Serializable, Value, Comparable<PropertyValueList> { @Override public int compareTo(PropertyValueList o) { return Bytes.compareTo(bytes, o.bytes); } PropertyValueList(); private  PropertyValueList(byte[] bytes); static PropertyValueList createEmptyList(); static PropertyValueList fromPropertyValues(
    Collection<PropertyValue> propertyValues); @Override boolean equals(Object o); @Override int hashCode(); @Override Iterator<PropertyValue> iterator(); @Override void write(DataOutputView dataOutput); @Override void read(DataInputView dataInput); @Override int compareTo(PropertyValueList o); @Override String toString(); }
PropertyValueList implements Iterable<PropertyValue>, Serializable, Value, Comparable<PropertyValueList> { @Override public int compareTo(PropertyValueList o) { return Bytes.compareTo(bytes, o.bytes); } PropertyValueList(); private  PropertyValueList(byte[] bytes); static PropertyValueList createEmptyList(); static PropertyValueList fromPropertyValues(
    Collection<PropertyValue> propertyValues); @Override boolean equals(Object o); @Override int hashCode(); @Override Iterator<PropertyValue> iterator(); @Override void write(DataOutputView dataOutput); @Override void read(DataInputView dataInput); @Override int compareTo(PropertyValueList o); @Override String toString();  }