Package net.sf.basedb.util
Class AnyToAnyLinkStatistics
java.lang.Object
net.sf.basedb.util.AnyToAnyLinkStatistics
- All Implemented Interfaces:
Comparable<AnyToAnyLinkStatistics>
Class for holding statisics about any-to-any links between items.
- Since:
- 3.17
- Author:
- nicklas
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Options to specify how the statistics should be generated. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Sort items by count, linkName and targetType.boolean
int
getCount()
Get the number of links that was found among the sampled items.Get the name of the link.int
Get the number of items that was sampled to generated the statistics.Get the item type of the target item for the link.int
hashCode()
void
setCount
(int count) void
setLinkName
(String linkName) void
setSampleSize
(int sampleSize) void
setTargetType
(Item targetType) toString()
-
Field Details
-
sampleSize
private int sampleSize -
linkName
-
targetType
-
count
private int count
-
-
Constructor Details
-
AnyToAnyLinkStatistics
public AnyToAnyLinkStatistics()
-
-
Method Details
-
getSampleSize
public int getSampleSize()Get the number of items that was sampled to generated the statistics. -
setSampleSize
public void setSampleSize(int sampleSize) -
getLinkName
Get the name of the link. -
setLinkName
-
getTargetType
Get the item type of the target item for the link. -
setTargetType
-
getCount
public int getCount()Get the number of links that was found among the sampled items. -
setCount
public void setCount(int count) -
compareTo
Sort items by count, linkName and targetType.- Specified by:
compareTo
in interfaceComparable<AnyToAnyLinkStatistics>
-
hashCode
public int hashCode() -
equals
-
toString
-