|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.serialver4j.base.VersionedClass
public final class VersionedClass
Class with one or more old versions.
| Constructor Summary | |
|---|---|
VersionedClass(String packageName,
String className)
Constructor with package and name of the current class. |
|
| Method Summary | |
|---|---|
void |
addVersion(ClassVersion version)
Adds a version to the class. |
Class<?> |
classFor(ClassVersion version)
Creates a class for the given version. |
boolean |
equals(Object obj)
|
Class<?> |
findArchivedClass(Long serialVersionUID)
Tries to find a version by it's serial version UID. |
List<Class<?>> |
getArchivedClasses()
Returns a list of archived classes. |
String |
getName()
Returns the full qualified name of the class. |
String |
getPackageName()
Returns the package name. |
String |
getSimpleClassName()
Returns the simple name of the class. |
int |
hashCode()
|
void |
init()
Initialize the instance after it has been deserialized. |
void |
removeVersion(ClassVersion version)
Removes a version from the class. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VersionedClass(String packageName,
String className)
packageName - Package name.className - Class name without package.| Method Detail |
|---|
public final void init()
public final void addVersion(ClassVersion version)
version - Version to add.public final void removeVersion(ClassVersion version)
version - Version to remove.public final String getName()
public final String getPackageName()
public final String getSimpleClassName()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic final Class<?> findArchivedClass(Long serialVersionUID)
serialVersionUID - Version to locate.
null if the version is unknown.public final List<Class<?>> getArchivedClasses()
public Class<?> classFor(ClassVersion version)
version - Version of the class.
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||