@NotStorableClass public class ReferenceLink extends Object implements Comparable<ReferenceLink>
| Constructor and Description |
|---|
ReferenceLink(DataRecordIdentifier referencedDataRecordIdentifier)
referenced set at contruction
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ReferenceLink referenceLink) |
int |
decrementLinkCount(DataRecordIdentifier referencingDataRecordIdentifier)
increment link count for a referencing to this referenced
|
boolean |
equals(Object obj) |
int |
getLinkCount(DataRecordIdentifier referencingDataRecordIdentifier)
get link count for a referencing to this referenced
|
GarbageReferenceLinkRBTNode |
getNode() |
int |
getNumberOfReferencing() |
List<DataRecordIdentifier> |
getRefencingDataRecordIdentifier() |
DataRecordIdentifier |
getReferencedDataRecordIdentifier() |
Collection<Referencing> |
getReferencing() |
int |
hashCode() |
int |
incrementLinkCount(DataRecordIdentifier referencingDataRecordIdentifier)
increment link count for a referencing to this referenced
|
void |
setLinkCount(int linkCount,
DataRecordIdentifier referencingDataRecordIdentifier)
set the number of time there is this link between referencing and
referenced
|
void |
setNode(GarbageReferenceLinkRBTNode node) |
String |
toString() |
int |
updateLinkCount(DataRecordIdentifier referencingDataRecordIdentifier,
int count)
update link count for a referencing to this referenced
|
Collection<Referencing> |
values() |
public ReferenceLink(DataRecordIdentifier referencedDataRecordIdentifier)
referencedDataRecordIdentifier - data record identifier for referenced objectpublic GarbageReferenceLinkRBTNode getNode()
public void setNode(GarbageReferenceLinkRBTNode node)
public DataRecordIdentifier getReferencedDataRecordIdentifier()
public int getLinkCount(DataRecordIdentifier referencingDataRecordIdentifier) throws ReferenceLinkGarbageException
referencingDataRecordIdentifier - the referencing for this referencedReferenceLinkGarbageException - the referencing for this referenced does not existpublic int updateLinkCount(DataRecordIdentifier referencingDataRecordIdentifier, int count) throws GarbageException, ReferenceLinkGarbageException
referencingDataRecordIdentifier - the referencing for this referencedcount - GarbageExceptionReferenceLinkGarbageException - the referencing for this referenced does not existpublic int incrementLinkCount(DataRecordIdentifier referencingDataRecordIdentifier)
referencingDataRecordIdentifier - the referencing for this referencedpublic int decrementLinkCount(DataRecordIdentifier referencingDataRecordIdentifier) throws ReferenceLinkGarbageException
referencingDataRecordIdentifier - the referencing for this referencedReferenceLinkGarbageException - the referencing for this referenced does not existpublic void setLinkCount(int linkCount,
DataRecordIdentifier referencingDataRecordIdentifier)
throws ReferenceLinkGarbageException
linkCount - the number of time there is this link between referencing and
referencedreferencingDataRecordIdentifier - the referencing for this referencedReferenceLinkGarbageExceptionpublic int getNumberOfReferencing()
public Collection<Referencing> values()
public List<DataRecordIdentifier> getRefencingDataRecordIdentifier() throws ReferenceLinkGarbageException
ReferenceLinkGarbageExceptionpublic Collection<Referencing> getReferencing()
public int compareTo(ReferenceLink referenceLink)
compareTo in interface Comparable<ReferenceLink>Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.