MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / equals

Method equals

unused/java/nio/charset/Charset.java:901–907  ·  view source on GitHub ↗

Tells whether or not this object is equal to another. Two charsets are equal if, and only if, they have the same canonical names. A charset is never equal to any other type of object. @return true if, and only if, this charset is equal to the given object

(Object ob)

Source from the content-addressed store, hash-verified

899 * given object
900 */
901 public final boolean equals(Object ob) {
902 if (!(ob instanceof Charset))
903 return false;
904 if (this == ob)
905 return true;
906 return name.equals(((Charset)ob).name());
907 }
908
909 /**
910 * Returns a string describing this charset.

Callers

nothing calls this directly

Calls 2

nameMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected