|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.classloading.spi.version.VersionComparatorRegistry
public class VersionComparatorRegistry
Version comparator registry.
Constructor Summary | |
---|---|
VersionComparatorRegistry()
Create a new VersionComparatorRegistry. |
Method Summary | ||
---|---|---|
|
compare(T t,
U u)
Compare two version impls. |
|
|
getComparator(Class<T> t,
Class<U> u)
Get the comparator. |
|
protected
|
getComparator(T t,
U u)
Get the comparator. |
|
static VersionComparatorRegistry |
getInstance()
Get the singleton |
|
|
registerVersionComparator(Class<T> t,
Class<U> u,
VersionComparator<T,U> comparator)
Register version comparator. |
|
|
registerVersionComparator(Class<T> t,
VersionComparator<T,T> comparator)
Register version comparator. |
|
|
removeVersionComparator(Class<T> t)
Remove the version comparator. |
|
|
removeVersionComparator(Class<T> t,
Class<U> u)
Remove the version comparator. |
|
|
same(T t,
U u)
Test whether two version impls are request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionComparatorRegistry()
Method Detail |
---|
public static VersionComparatorRegistry getInstance()
public <T,U> void removeVersionComparator(Class<T> t, Class<U> u)
T
- the first version typeU
- the second version typet
- first version implu
- second version implpublic <T> void removeVersionComparator(Class<T> t)
T
- the version typet
- version implpublic <T> void registerVersionComparator(Class<T> t, VersionComparator<T,T> comparator)
T
- the version typet
- version implcomparator
- the version comparatorpublic <T,U> void registerVersionComparator(Class<T> t, Class<U> u, VersionComparator<T,U> comparator)
T
- the first version typeU
- the second version typet
- first version implu
- second version implcomparator
- the version comparatorprotected <T,U> VersionComparator<T,U> getComparator(T t, U u)
T
- the first version typeU
- the second version typet
- first version implu
- second version impl
public <T,U> VersionComparator<T,U> getComparator(Class<T> t, Class<U> u)
T
- the first version typeU
- the second version typet
- first version impl classu
- second version impl class
public <T,U> int compare(T t, U u)
T
- the first version typeU
- the second version typet
- the first versionu
- the second version
public <T,U> boolean same(T t, U u)
T
- the first version typeU
- the second version typet
- T version implu
- U version impl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |