@Override default Stream<?> components() { return Stream.of(getFirstArgument(), getSecondArgument(), getPredicate()); }
@Override default Stream<?> components() { return Stream.of(getFirstArgument(), getSecondArgument(), getPredicate()); }
@Override default Stream<?> components() { return Stream.of(getFirstArgument(), getSecondArgument(), getPredicate()); }
@Override default int initHashCode() { int hash = hashIndex(); hash = OWLObject.hashIteration(hash, getFirstArgument().hashCode()); hash = OWLObject.hashIteration(hash, getSecondArgument().hashCode()); return OWLObject.hashIteration(hash, getPredicate().hashCode()); }
@Override default int initHashCode() { int hash = hashIndex(); hash = OWLObject.hashIteration(hash, getFirstArgument().hashCode()); hash = OWLObject.hashIteration(hash, getSecondArgument().hashCode()); return OWLObject.hashIteration(hash, getPredicate().hashCode()); }
@Override default int initHashCode() { int hash = hashIndex(); hash = OWLObject.hashIteration(hash, getFirstArgument().hashCode()); hash = OWLObject.hashIteration(hash, getSecondArgument().hashCode()); return OWLObject.hashIteration(hash, getPredicate().hashCode()); }
protected int compareObjectOfSameType(OWLObject object) { SWRLBinaryAtom other = (SWRLBinaryAtom) object; int diff = ((OWLObject)getPredicate()).compareTo((OWLObject)other.getPredicate()); if(diff != 0) { return diff; } diff = arg0.compareTo(other.getFirstArgument()); if(diff != 0) { return diff; } return arg1.compareTo(other.getSecondArgument()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { SWRLBinaryAtom<?,?> other = (SWRLBinaryAtom<?,?>) object; int diff = ((OWLObject) getPredicate()).compareTo((OWLObject) other.getPredicate()); if (diff != 0) { return diff; } diff = arg0.compareTo(other.getFirstArgument()); if (diff != 0) { return diff; } return arg1.compareTo(other.getSecondArgument()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { SWRLBinaryAtom<?, ?> other = (SWRLBinaryAtom<?, ?>) object; int diff = ((OWLObject) getPredicate()).compareTo((OWLObject) other .getPredicate()); if (diff != 0) { return diff; } diff = arg0.compareTo(other.getFirstArgument()); if (diff != 0) { return diff; } return arg1.compareTo(other.getSecondArgument()); } }