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
All Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
getSampleSize
public int getSampleSize()
Get the number of items that was sampled to generated the statistics.
-
setSampleSize
public void setSampleSize(int sampleSize)
-
getLinkName
public String getLinkName()
Get the name of the link.
-
setLinkName
public void setLinkName(String linkName)
-
getTargetType
public Item getTargetType()
Get the item type of the target item for the link.
-
setTargetType
public void setTargetType(Item targetType)
-
getCount
public int getCount()
Get the number of links that was found among the sampled items.
-
setCount
public void setCount(int count)
-
compareTo
public int compareTo(AnyToAnyLinkStatistics o)
Sort items by count, linkName and targetType.- Specified by:
compareTo
in interfaceComparable<AnyToAnyLinkStatistics>
-
-