MCPcopy Create free account
hub / github.com/ReadyTalk/avian / asSubclass

Method asSubclass

classpath/java/lang/Class.java:609–615  ·  view source on GitHub ↗
(Class<T> c)

Source from the content-addressed store, hash-verified

607 }
608
609 public <T> Class<? extends T> asSubclass(Class<T> c) {
610 if (! c.isAssignableFrom(this)) {
611 throw new ClassCastException();
612 }
613
614 return (Class<? extends T>) this;
615 }
616
617 public T cast(Object o) {
618 return (T) o;

Callers

nothing calls this directly

Calls 1

isAssignableFromMethod · 0.45

Tested by

no test coverage detected