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
  • Field Details

    • sampleSize

      private int sampleSize
    • linkName

      private String linkName
    • targetType

      private Item 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

      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 interface Comparable<AnyToAnyLinkStatistics>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object