Class PrototypeFactory
java.lang.Object
org.javarosa.core.util.externalizable.PrototypeFactory
public class PrototypeFactory extends Object
-
Field Summary
Fields Modifier and Type Field Description static intCLASS_HASH_SIZE -
Constructor Summary
Constructors Constructor Description PrototypeFactory()PrototypeFactory(List<String> classNames) -
Method Summary
Modifier and Type Method Description voidaddClass(Class c)static booleancompareHash(byte[] a, byte[] b)ClassgetClass(byte[] hash)static byte[]getClassHash(Class type)ObjectgetInstance(byte[] hash)static ObjectgetInstance(Class c)
-
Field Details
-
CLASS_HASH_SIZE
public static final int CLASS_HASH_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
PrototypeFactory
public PrototypeFactory() -
PrototypeFactory
-
-
Method Details
-
addClass
-
getClass
-
getInstance
-
getInstance
-
getClassHash
-
compareHash
public static boolean compareHash(byte[] a, byte[] b)
-