@Override public BNode createBNode(String nodeID) { return new SimpleBNode(nodeID); }
/** * Creates a new blank node with the supplied identifier. * * @param id * The identifier for this blank node, must not be <tt>null</tt>. */ protected SimpleBNode(String id) { this(); setID(id); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof BNode) { BNode otherNode = (BNode)o; return this.getID().equals(otherNode.getID()); } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof NativeBNode && internalID != NativeValue.UNKNOWN_ID) { NativeBNode otherNativeBNode = (NativeBNode)o; if (otherNativeBNode.internalID != NativeValue.UNKNOWN_ID && revision.equals(otherNativeBNode.revision)) { // NativeBNode's from the same revision of the same native store, // with both ID's set return internalID == otherNativeBNode.internalID; } } return super.equals(o); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof BNode) { BNode otherNode = (BNode)o; return this.getID().equals(otherNode.getID()); } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof NativeBNode && internalID != NativeValue.UNKNOWN_ID) { NativeBNode otherNativeBNode = (NativeBNode)o; if (otherNativeBNode.internalID != NativeValue.UNKNOWN_ID && revision.equals(otherNativeBNode.revision)) { // NativeBNode's from the same revision of the same native store, // with both ID's set return internalID == otherNativeBNode.internalID; } } return super.equals(o); }
/** * Creates a new blank node with the supplied identifier. * * @param id * The identifier for this blank node, must not be <tt>null</tt>. */ protected SimpleBNode(String id) { this(); setID(id); }
@Override public BNode createBNode(String nodeID) { return new SimpleBNode(nodeID); }