argutia.logic.sets
Class Partition<K extends Enum<K>,V>

java.lang.Object
  extended by argutia.logic.sets.Partition<K,V>
All Implemented Interfaces:
AffichableAvecStyle
public class Partition<K extends Enum<K>,V>
extends Object
implements AffichableAvecStyle
Field Summary
private Set<V> contenuCumuleDesPartitions
           
private Map<K,MutableSet<V>> parties
           
private Set<V> source
           
 
Constructor Summary
Partition(Set<V> source, Class<K> keyType, Class<? extends MutableSet<V>> partsType)
           
 
Method Summary
 boolean add(V element, K partie)
           
 Set<V> get(K partie)
           
 String toString()
           
 void toStyledString(BatchStyledDocument doc)
          Ajoute du texte mis en forme au BatchedContent passé en paramètre.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Field Detail

contenuCumuleDesPartitions

private final Set<V> contenuCumuleDesPartitions

parties

private final Map<K extends Enum<K>,MutableSet<V>> parties

source

private final Set<V> source
Constructor Detail

Partition

public Partition(Set<V> source,
                 Class<K> keyType,
                 Class<? extends MutableSet<V>> partsType)
          throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

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