@Test public void testHashCode() throws Exception { Identifier aId = Identifier._("xyz"); Identifier same = Identifier._("xyz"); Identifier sameButQuoted = Identifier._("xyz", true); assertEquals(aId.hashCode(), same.hashCode()); assertNotEquals(aId.hashCode(), sameButQuoted.hashCode()); }
public int hashCode() { return Objects.hash(name, quoted); }
Identifier implements ProtoObject<IdentifierProto> { public int hashCode() { return Objects.hash(name, quoted); } }
Identifier implements ProtoObject<IdentifierProto> { public int hashCode() { return Objects.hash(name, quoted); } private  Identifier(String name, boolean quoted); }
Identifier implements ProtoObject<IdentifierProto> { public int hashCode() { return Objects.hash(name, quoted); } private  Identifier(String name, boolean quoted); static Identifier _(String name); static Identifier _(String name, boolean quoted); String raw(IdentifierPolicy policy); String interned(IdentifierPolicy policy); @Override String toString(); int hashCode(); boolean equals(Object obj); @Override IdentifierProto getProto(); static Identifier fromProto(IdentifierProto proto); }
Identifier implements ProtoObject<IdentifierProto> { public int hashCode() { return Objects.hash(name, quoted); } private  Identifier(String name, boolean quoted); static Identifier _(String name); static Identifier _(String name, boolean quoted); String raw(IdentifierPolicy policy); String interned(IdentifierPolicy policy); @Override String toString(); int hashCode(); boolean equals(Object obj); @Override IdentifierProto getProto(); static Identifier fromProto(IdentifierProto proto);  }