Package net.sf.basedb.util
Class AnyToAnyLinkStatistics
java.lang.Object
net.sf.basedb.util.AnyToAnyLinkStatistics
- All Implemented Interfaces:
Comparable<AnyToAnyLinkStatistics>
public class AnyToAnyLinkStatistics extends Object implements Comparable<AnyToAnyLinkStatistics>
Class for holding statisics about any-to-any links between items.
- Since:
- 3.17
- Author:
- nicklas
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnyToAnyLinkStatistics.Options
Options to specify how the statistics should be generated. -
Field Summary
Fields Modifier and Type Field Description private int
count
private String
linkName
private int
sampleSize
private Item
targetType
-
Constructor Summary
Constructors Constructor Description AnyToAnyLinkStatistics()
-
Method Summary
Modifier and Type Method Description int
compareTo(AnyToAnyLinkStatistics o)
Sort items by count, linkName and targetType.boolean
equals(Object o)
int
getCount()
Get the number of links that was found among the sampled items.String
getLinkName()
Get the name of the link.int
getSampleSize()
Get the number of items that was sampled to generated the statistics.Item
getTargetType()
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)
String
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
-