|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sra.riskmaps.func.EmptySet
public class EmptySet
This class represents the mathematical idea of an empty set. Empty sets contain no values. The union of a set with the empty set is simply the original set itself, and the intersection of a set with the empty set is again an empty set. Empty sets are neither discrete nor continuous.
-=* CHANGE LOG *=- 06/19/2008 -- EMM: Original implementation.
| Constructor Summary | |
|---|---|
EmptySet()
|
|
| Method Summary | |
|---|---|
boolean |
contains(double x)
Checks if the given value x exists within this set. |
boolean |
equals(SetAPI set)
Checks if the calling SetAPI and the given set
are logically equal. |
SetAPI |
intersectionOf(SetAPI set)
Takes the intersection of the given set with the calling
object. |
double |
lowerBound()
|
SetAPI |
unionWith(SetAPI set)
Takes the union of the given set with the calling object. |
double |
upperBound()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptySet()
| Method Detail |
|---|
public boolean contains(double x)
x exists within this set. Since
this set is empty, the function always returns false.
contains in interface SetAPIx - The value to check for.
public SetAPI unionWith(SetAPI set)
set with the calling object.
Since this set is empty, the given set is always returned.
unionWith in interface SetAPIset - The set to union with this set.
set, namely,
the passed set itself.public SetAPI intersectionOf(SetAPI set)
set with the calling
object. Since this set is empty, the empty set is always returned.
intersectionOf in interface SetAPIset - The set to intersect with this set.
public boolean equals(SetAPI set)
SetAPI and the given set
are logically equal.
equals in interface SetAPIpublic double lowerBound()
lowerBound in interface SetAPIpublic double upperBound()
upperBound in interface SetAPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||