de.rwth.domains.templates
Class IntegerPOSet
java.lang.Object
|
+--de.rwth.domains.templates.SimpleSet
|
+--de.rwth.domains.templates.IntegerPOSet
- All Implemented Interfaces:
- POSet, Set
- public class IntegerPOSet
- extends SimpleSet
- implements POSet
Class for the creation of intervals in the integers with natural
order.
- Version:
- $Id: IntegerPOSet.java,v 1.2 2002/09/17 06:53:53 mohnen Exp $
- Author:
- Markus Mohnen
Constructor Summary |
IntegerPOSet(int from,
int to)
Create an interval in the integers. |
Method Summary |
boolean |
le(java.lang.Object e1,
java.lang.Object e2)
The method le checks if one element is less than
an other element. |
boolean |
lt(java.lang.Object e1,
java.lang.Object e2)
The method lt checks if one element is less than
an other element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerPOSet
public IntegerPOSet(int from,
int to)
- Create an interval in the integers.
- Parameters:
from
- a value of type int
to
- a value of type int
lt
public boolean lt(java.lang.Object e1,
java.lang.Object e2)
- The method
lt
checks if one element is less than
an other element.
- Specified by:
lt
in interface POSet
- Parameters:
e1
- a value of type Object
e2
- a value of type Object
- Returns:
true
iff both e1
and
e2
are
Integer
and first <
second.
le
public boolean le(java.lang.Object e1,
java.lang.Object e2)
- The method
le
checks if one element is less than
an other element.
- Specified by:
le
in interface POSet
- Parameters:
e1
- a value of type Object
e2
- a value of type Object
- Returns:
true
iff both e1
and
e2
are
SimpleElements
encapsulating an
Integer
and first <=
second.