|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object leila.patterns.Bridge
public final class Bridge
This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).
Bridge.java stores a bridge, i.e. a list of Links. The only difference to a List is the implementation of hashCode() and equals(), which do not take into account the last word. This is a Wrapper Class, i.e. no deep copies are made.
Field Summary | |
---|---|
java.util.List<Link> |
links
Holds the links |
Constructor Summary | |
---|---|
Bridge(java.util.List<Link> l)
Constructs a Bridge |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Two Bridges are equal if their links are the same (except for the last destination word) |
Bridge |
essentialize()
Returns a new Bridge with all Links essentialized |
int |
hashCode()
Returns a hashCode for this Bridge |
java.lang.String |
toString()
Returns a String representation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.List<Link> links
Constructor Detail |
---|
public Bridge(java.util.List<Link> l)
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Bridge essentialize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |