@Test public void testUniqueness() { Annotation a1 = UniqueAnnotations.create(); Annotation a2 = UniqueAnnotations.create(); assertThat(a1, equalTo(a1)); assertThat(a2, equalTo(a2)); assertThat(a1, not(equalTo(a2))); assertThat(a2, not(equalTo(a1))); }
public static Annotation create() { return create(SEQUENCE.getAndIncrement()); }
UniqueAnnotations { public static Annotation create() { return create(SEQUENCE.getAndIncrement()); } }
UniqueAnnotations { public static Annotation create() { return create(SEQUENCE.getAndIncrement()); } private  UniqueAnnotations(); }
UniqueAnnotations { public static Annotation create() { return create(SEQUENCE.getAndIncrement()); } private  UniqueAnnotations(); static Annotation create(); }
UniqueAnnotations { public static Annotation create() { return create(SEQUENCE.getAndIncrement()); } private  UniqueAnnotations(); static Annotation create();  }