diff --git a/index.html b/index.html index cc3f489..69c8881 100644 --- a/index.html +++ b/index.html @@ -131,7 +131,7 @@
- equals() returns true
if and only if other
has the same
- termType
and the same contents (as defined by concrete subclasses).
+ equals() returns true
+ when called with parameter other
+ on an object term
if all of the conditions below hold:
+
other
is neither null
nor undefined
;term.termType
is the same string as other.termType
;other
follows the additional constraints of the specific Term
interface implemented by term
+ (e.g., NamedNode, Literal, …);
+ otherwise, it returns false
.
"http://example.org/resource"
).
- equals() returns true
if and only if other
has
- termType
"NamedNode"
and the same value.
+ equals() returns
true
if
+ all general Term.equals conditions hold
+ and term.value
is the same string as other.value
;
+ otherwise, it returns false
.
"blank3"
)
- equals() returns true
if and only if other
has
- termType
"BlankNode"
and the same value
.
+ equals() returns true
if
+ all general Term.equals conditions hold
+ and term.value
is the same string as other.value
;
+ otherwise, it returns false
.
"http://www.w3.org/2001/XMLSchema#string"
.
- equals() returns true
if and only if other
has
- termType
"Literal"
and the same value
,
- language
, and datatype
.
+ equals() returns true
if
+ all general Term.equals conditions hold,
+ term.value
is the same string as other.value
,
+ term.language
is the same string as other.language
, and
+ term.datatype.equals(other.datatype)
evaluates to true
;
+ otherwise, it returns false
.
"a"
).
- equals() returns true
if and only if other
has
- termType
"Variable"
and the same value
.
+ equals() returns true
if
+ all general Term.equals conditions hold
+ and term.value
is the same string as other.value
;
+ otherwise, it returns false
.
- equals() returns true
if and only if other
has
- termType
"DefaultGraph"
.
+ equals() returns true
if
+ all general Term.equals conditions hold;
+ otherwise, it returns false
.
Triple
MUST be represented as Quad
with graph
set to a DefaultGraph
- equals() returns true
if and only if the argument is a) of the same
- type b) has all components equal.
+ equals() returns true
+ when called with parameter other
+ on an object quad
if
+ all of the conditions below hold:
+
other
is neither null
nor undefined
;quad.subject.equals(other.subject)
evaluates to true
;quad.predicate.equals(other.predicate)
evaluates to true
;quad.object.equals(other.object)
evaluates to a true
;quad.graph.equals(other.graph)
evaluates to a true
;
+ otherwise, it returns false
.