Пример #1
0
 @Override
 public int compareTo(Term t) {
   if (t == null) return -1;
   if (t.isLiteral()) {
     Literal tl = (Literal) t;
     if (!negated() && tl.negated()) return -1;
     else if (negated() && !tl.negated()) return 1;
   }
   return super.compareTo(t);
 }
Пример #2
0
 public LiteralImpl(Literal l) {
   super(l);
   type = !l.negated();
 }