public class PartialOrderToCompleteOrder<T> extends Object
Stores partial orderings in order to be able derive complete ordering.
When storing new partial ordering, checks that new partial ordering does not violates partial orderings stored before.
| Modifier and Type | Class and Description |
|---|---|
class |
PartialOrderToCompleteOrder.CompleteOrdering
Class representing result of deriving complete ordering from stored partial orderings.
|
| Constructor and Description |
|---|
PartialOrderToCompleteOrder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPartialOrdering(Collection<T> collection)
Stores collection as partial ordering.
|
Set<T> |
getAllItems()
Provides all items which was stored in collections as partial orderings
|
Collection<T> |
getCompletelyOrderedItems()
Get all items completely ordered.
|
PartialOrderToCompleteOrder.CompleteOrdering |
getCompleteOrdering()
Provides current complete ordering derived from partial orderings.
|
public void addPartialOrdering(Collection<T> collection)
Stores collection as partial ordering.
Checks that this collection will not violate another partial orderings stored before.
collection - as partial orderpublic Set<T> getAllItems()
public PartialOrderToCompleteOrder.CompleteOrdering getCompleteOrdering()
Provides current complete ordering derived from partial orderings.
public Collection<T> getCompletelyOrderedItems()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.