public class MWEDescSet extends CompositeCollection<IMWEDesc> implements IMWEDescSet
IMWEDescSet
interface.CompositeCollection.CompositeCollectionItr
subsets
Constructor and Description |
---|
MWEDescSet()
Creates a new empty, mutable MWE desc set.
|
MWEDescSet(java.util.Set<IRootMWEDesc> rootDescs,
java.util.Set<IInfMWEDesc> infDescs)
Creates a new mutable MWE desc set that contains the specified elements
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(IMWEDesc o) |
static IMWEDescSet |
emptySet()
Returns an unmodifiable empty description set.
|
java.util.Set<IInfMWEDesc> |
getInflectedMWEDescs()
Returns the set of inflected MWE desc objects contained herein.
|
java.util.Set<IRootMWEDesc> |
getRootMWEDescs()
Returns the set of root MWE desc objects contained herein.
|
void |
makeUnmodifiable()
Makes this set unmodifiable.
|
static <E extends IMWEDesc> |
makeUnmodifiable(java.util.Set<E> set)
Returns an unmodifiable view of the given set.
|
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
static <E extends IMWEDesc> |
replaceNull(java.util.Set<E> set)
If the given set is
null , returns the empty set. |
iterator, size
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public MWEDescSet()
public MWEDescSet(java.util.Set<IRootMWEDesc> rootDescs, java.util.Set<IInfMWEDesc> infDescs)
rootDescs
- the root descs to be included in the set; may be
null
infDescs
- the inflected descs to be included in the set; may be
null
public java.util.Set<IRootMWEDesc> getRootMWEDescs()
IMWEDescSet
getRootMWEDescs
in interface IMWEDescSet
public java.util.Set<IInfMWEDesc> getInflectedMWEDescs()
IMWEDescSet
getInflectedMWEDescs
in interface IMWEDescSet
public boolean add(IMWEDesc o)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public void makeUnmodifiable()
IMWEDescSet
UnsupportedOperationException
.makeUnmodifiable
in interface IMWEDescSet
public static IMWEDescSet emptySet()
null
, initializes it so that subsequent calls to this method
return the static instance.public static <E extends IMWEDesc> java.util.Set<E> makeUnmodifiable(java.util.Set<E> set)
E
- the types of mwe descs in the setset
- the set to be made unmodifiablepublic static <E extends IMWEDesc> java.util.Set<E> replaceNull(java.util.Set<E> set)
null
, returns the empty set. Otherwise,
returns the set itself.E
- the types of mwe descs in the setset
- the setnull
, returns the empty set.
Otherwise, returns the set itself.Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.