argutia.logic.sets
Class Partition<K extends Enum<K>,V>
java.lang.Object
argutia.logic.sets.Partition<K,V>
- All Implemented Interfaces:
- AffichableAvecStyle
public class Partition<K extends Enum<K>,V>
- extends Object
- implements AffichableAvecStyle
contenuCumuleDesPartitions
private final Set<V> contenuCumuleDesPartitions
parties
private final Map<K extends Enum<K>,MutableSet<V>> parties
source
private final Set<V> source
Partition
public Partition(Set<V> source,
Class<K> keyType,
Class<? extends MutableSet<V>> partsType)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
add
public final boolean add(V element,
K partie)
get
public final Set<V> get(K partie)
throws IllegalStateException
- Throws:
IllegalStateException
toString
public String toString()
- Overrides:
toString
in class Object
toStyledString
public void toStyledString(BatchStyledDocument doc)
- Description copied from interface:
AffichableAvecStyle
- Ajoute du texte mis en forme au
BatchedContent
passé en paramètre.
- Specified by:
toStyledString
in interface AffichableAvecStyle
- See Also:
MyStyles
Argutia JavaDoc
23 décembre 2007