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

Method hasName

unused/sun/nio/cs/ThreadLocalCoders.java:69–75  ·  view source on GitHub ↗
(Object ob, Object name)

Source from the content-addressed store, hash-verified

67
68 private static Cache decoderCache = new Cache(CACHE_SIZE) {
69 boolean hasName(Object ob, Object name) {
70 if (name instanceof String)
71 return (((CharsetDecoder)ob).charset().name().equals(name));
72 if (name instanceof Charset)
73 return ((CharsetDecoder)ob).charset().equals(name);
74 return false;
75 }
76 Object create(Object name) {
77 if (name instanceof String)
78 return Charset.forName((String)name).newDecoder();

Callers

nothing calls this directly

Calls 3

nameMethod · 0.80
charsetMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected