|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.toronto.cs.algebra.MinUpSet
public class MinUpSet
an upset represented by its minimal elements
Constructor Summary | |
---|---|
MinUpSet()
Creates a new MinUpSet instance. |
Method Summary | |
---|---|
boolean |
add(AlgebraValue v)
Adds a single AlgebraValue |
void |
addAll(MinUpSet set)
Adds all elements of set to this set |
boolean |
equals(java.lang.Object o)
Equals method |
java.util.Set |
getValues()
Returns the set of values |
int |
hashCode()
|
boolean |
isIn(AlgebraValue v)
true if v is an element of this set, i.e. |
boolean |
isSubSet(MinUpSet set)
true if every element of set is an element of this set. |
java.util.Iterator |
iterator()
Iterator over values of this set. |
int |
size()
Describe size method here. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MinUpSet()
MinUpSet
instance.
Method Detail |
---|
public void addAll(MinUpSet set)
set
- a MinUpSet
valuepublic boolean add(AlgebraValue v)
v
- an AlgebraValue
value
public boolean isIn(AlgebraValue v)
v
- an AlgebraValue
value
boolean
valuepublic boolean isSubSet(MinUpSet set)
set
is an element of this set.
set
- a MinUpSet
value
boolean
valuepublic java.util.Set getValues()
Set
valuepublic java.util.Iterator iterator()
Iterator
valuepublic int size()
size
method here.
int
valuepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- an Object
value
boolean
valuepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |