@Immutable public final class ClassProxy extends Object implements Serializable
When using this class, classes are serialized as their binary name, as returned by
Class.getName()
. The name encodes array information, so this is adequate
to fully reconstruct the class.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getClassName()
Get the class name.
|
int |
hashCode() |
static boolean |
isSerializationPermissive() |
static ClassProxy |
of(Class<?> cls)
Construct a class proxy for a class.
|
Class<?> |
resolve()
Resolve a class proxy to a class.
|
String |
toString() |
public String getClassName()
public Class<?> resolve() throws ClassNotFoundException
ClassNotFoundException
- if the class represented by this proxy cannot be found.public static ClassProxy of(Class<?> cls)
cls
- The class.public static boolean isSerializationPermissive()
Copyright © 2016 GroupLens Research. All rights reserved.