@Override public IRI createIRI(String iri) { return new SimpleIRI(iri); }
/** * Creates a new IRI from the supplied string. * <p> * Note that creating SimpleIRI objects directly via this constructor is not the recommended approach. * Instead, use a {@link org.eclipse.rdf4j.model.ValueFactory ValueFactory} (obtained from your repository * or by using {@link SimpleValueFactory#getInstance()}) to create new IRI objects. * * @param iriString * A String representing a valid, absolute IRI. May not be <code>null</code>. * @throws IllegalArgumentException * If the supplied IRI is not a valid (absolute) IRI. * @see {@link SimpleValueFactory#createIRI(String)} */ protected SimpleIRI(String iriString) { setIRIString(iriString); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof IRI) { return toString().equals(o.toString()); } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof NativeIRI && internalID != NativeValue.UNKNOWN_ID) { NativeIRI otherNativeURI = (NativeIRI)o; if (otherNativeURI.internalID != NativeValue.UNKNOWN_ID && revision.equals(otherNativeURI.revision)) { // NativeURI's from the same revision of the same native store, with // both ID's set return internalID == otherNativeURI.internalID; } } return super.equals(o); } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof IRI) { return toString().equals(o.toString()); } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof NativeIRI && internalID != NativeValue.UNKNOWN_ID) { NativeIRI otherNativeURI = (NativeIRI)o; if (otherNativeURI.internalID != NativeValue.UNKNOWN_ID && revision.equals(otherNativeURI.revision)) { // NativeURI's from the same revision of the same native store, with // both ID's set return internalID == otherNativeURI.internalID; } } return super.equals(o); } }
@Override public IRI createIRI(String iri) { return new SimpleIRI(iri); }
/** * Creates a new IRI from the supplied string. * <p> * Note that creating SimpleIRI objects directly via this constructor is not the recommended approach. * Instead, use a {@link org.eclipse.rdf4j.model.ValueFactory ValueFactory} (obtained from your repository * or by using {@link SimpleValueFactory#getInstance()}) to create new IRI objects. * * @param iriString * A String representing a valid, absolute IRI. May not be <code>null</code>. * @throws IllegalArgumentException * If the supplied IRI is not a valid (absolute) IRI. * @see {@link SimpleValueFactory#createIRI(String)} */ protected SimpleIRI(String iriString) { setIRIString(iriString); }