|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.plugins.sort.DominoOrdering<T>
T
- exact domino typepublic class DominoOrdering<T extends Domino<?>>
Simple transition ordering using transitive closure.
Nested Class Summary | |
---|---|
protected class |
DominoOrdering.IndexComparator
The index comparator. |
Field Summary | |
---|---|
protected int[][] |
connections
|
protected List<T> |
dominoes
|
protected String |
message
|
protected int |
size
|
Constructor Summary | |
---|---|
DominoOrdering(String message)
|
Method Summary | |
---|---|
protected void |
fillCompareNames()
Fill transitions with name compare. |
protected int |
fillTransitions(boolean fillTransitions)
Fill transitions. |
protected void |
init(List<T> dominoes,
Object cause)
Initialize transitions. |
List<T> |
orderDominoes(List<T> dominoes,
Object cause)
Order dominoes. |
protected void |
throwCycleException(Object cause)
Throw the cycle exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String message
protected List<T extends Domino<?>> dominoes
protected int size
protected int[][] connections
Constructor Detail |
---|
public DominoOrdering(String message)
Method Detail |
---|
protected void init(List<T> dominoes, Object cause)
dominoes
- all dominoescause
- the possible cycle causepublic List<T> orderDominoes(List<T> dominoes, Object cause)
dominoes
- all dominoescause
- the possible cycle cause
protected int fillTransitions(boolean fillTransitions)
fillTransitions
- do change
protected void fillCompareNames()
protected void throwCycleException(Object cause)
cause
- the cycle cause
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |