Пример #1
0
 public static EnumerationFactory getObject(String image) { // Ada'Value
   EnumerationFactory found;
   // Linear search seems good enough because there presumably
   // will not be too many literals.
   for (int i = 0; i < allObjects.size(); i++) {
     found = (EnumerationFactory) allObjects.elementAt(i);
     if (found.toString().equals(image)) {
       return found;
     }
   }
   return null;
 }
Пример #2
0
 public boolean ge(EnumerationFactory e) { // ">="
   return this.getPos() >= e.getPos();
 }
Пример #3
0
 public boolean le(EnumerationFactory e) { // "<="
   return this.getPos() <= e.getPos();
 }
Пример #4
0
 public boolean gt(EnumerationFactory e) { // ">"
   return this.getPos() > e.getPos();
 }
Пример #5
0
 /**
  * Order relations Object.op (OtherObject) representing the relation Object op OtherObject.
  *
  * @param e the right operand
  */
 public boolean lt(EnumerationFactory e) { // "<"
   return this.getPos() < e.getPos();
 }