|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nnsoft.sameas4j.Equivalence
public final class Equivalence
This class models an equivalence. An equivalence is a response given by
sameas.org to a given URI in
terms of other owl:sameAs URI.
| Constructor Summary | |
|---|---|
protected |
Equivalence(URI uri)
Creates a new Equivalence instance by the requested URI. |
protected |
Equivalence(URL url)
Creates a new Equivalence instance by the requested URL. |
| Method Summary | |
|---|---|
protected void |
addDuplicate(URI uri)
Adds an equivalent URI. |
boolean |
equals(Object object)
|
int |
getAmount()
Returns the number of equivalent URIs. |
URI |
getUri()
Returns the requested URI. |
int |
hashCode()
|
Iterator<URI> |
iterator()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Equivalence(URI uri)
Equivalence instance by the requested URI.
uri - the requested URI.
protected Equivalence(URL url)
throws URISyntaxException
Equivalence instance by the requested URL.
url - the requested URL.
URISyntaxException| Method Detail |
|---|
public URI getUri()
public int getAmount()
public Iterator<URI> iterator()
iterator in interface Iterable<URI>protected void addDuplicate(URI uri)
uri - an equivalent URI.public String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||