@Test(expected = UnsupportedOperationException.class) public void testCompare() { type.compare(new Object(), new Object()); }
@Override public int compare(Object v1, Object v2) { if (v1 == null) { if (v2 == null) { return 0; } else { return -1; } } else if (v2 == null) { return 1; } else { throw new UnsupportedOperationException(MetadataConstants.ERR_COMPARE_NOT_SUPPORTED); } }
ContainerType implements Type { @Override public int compare(Object v1, Object v2) { if (v1 == null) { if (v2 == null) { return 0; } else { return -1; } } else if (v2 == null) { return 1; } else { throw new UnsupportedOperationException(MetadataConstants.ERR_COMPARE_NOT_SUPPORTED); } } }
ContainerType implements Type { @Override public int compare(Object v1, Object v2) { if (v1 == null) { if (v2 == null) { return 0; } else { return -1; } } else if (v2 == null) { return 1; } else { throw new UnsupportedOperationException(MetadataConstants.ERR_COMPARE_NOT_SUPPORTED); } } ContainerType(String name); }
ContainerType implements Type { @Override public int compare(Object v1, Object v2) { if (v1 == null) { if (v2 == null) { return 0; } else { return -1; } } else if (v2 == null) { return 1; } else { throw new UnsupportedOperationException(MetadataConstants.ERR_COMPARE_NOT_SUPPORTED); } } ContainerType(String name); @Override String getName(); @Override boolean supportsEq(); @Override boolean supportsOrdering(); @Override int compare(Object v1, Object v2); @Override Object cast(Object v); @Override JsonNode toJson(JsonNodeFactory factory, Object value); @Override Object fromJson(JsonNode value); @Override boolean equals(Object obj); @Override int hashCode(); }
ContainerType implements Type { @Override public int compare(Object v1, Object v2) { if (v1 == null) { if (v2 == null) { return 0; } else { return -1; } } else if (v2 == null) { return 1; } else { throw new UnsupportedOperationException(MetadataConstants.ERR_COMPARE_NOT_SUPPORTED); } } ContainerType(String name); @Override String getName(); @Override boolean supportsEq(); @Override boolean supportsOrdering(); @Override int compare(Object v1, Object v2); @Override Object cast(Object v); @Override JsonNode toJson(JsonNodeFactory factory, Object value); @Override Object fromJson(JsonNode value); @Override boolean equals(Object obj); @Override int hashCode();  }