@Test public void testEquals() { assertThat(OffHeapResourceIdentifier.identifier("foo").equals(OffHeapResourceIdentifier.identifier("foo")), is(true)); assertThat(OffHeapResourceIdentifier.identifier("foo").equals(OffHeapResourceIdentifier.identifier("bar")), is(false)); }
@Override public boolean equals(Object obj) { return (obj instanceof OffHeapResourceIdentifier) && name.equals(((OffHeapResourceIdentifier) obj).name); }
OffHeapResourceIdentifier implements ServiceConfiguration<OffHeapResource> { @Override public boolean equals(Object obj) { return (obj instanceof OffHeapResourceIdentifier) && name.equals(((OffHeapResourceIdentifier) obj).name); } }
OffHeapResourceIdentifier implements ServiceConfiguration<OffHeapResource> { @Override public boolean equals(Object obj) { return (obj instanceof OffHeapResourceIdentifier) && name.equals(((OffHeapResourceIdentifier) obj).name); } private  OffHeapResourceIdentifier(String name); }
OffHeapResourceIdentifier implements ServiceConfiguration<OffHeapResource> { @Override public boolean equals(Object obj) { return (obj instanceof OffHeapResourceIdentifier) && name.equals(((OffHeapResourceIdentifier) obj).name); } private  OffHeapResourceIdentifier(String name); static OffHeapResourceIdentifier identifier(String name); @Override int hashCode(); @Override boolean equals(Object obj); String getName(); @Override Class<OffHeapResource> getServiceType(); @Override String toString(); }
OffHeapResourceIdentifier implements ServiceConfiguration<OffHeapResource> { @Override public boolean equals(Object obj) { return (obj instanceof OffHeapResourceIdentifier) && name.equals(((OffHeapResourceIdentifier) obj).name); } private  OffHeapResourceIdentifier(String name); static OffHeapResourceIdentifier identifier(String name); @Override int hashCode(); @Override boolean equals(Object obj); String getName(); @Override Class<OffHeapResource> getServiceType(); @Override String toString();  }