Class BarcodeValue


  • final class BarcodeValue
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.Integer,​java.lang.Integer> values  
    • Constructor Summary

      Constructors 
      Constructor Description
      BarcodeValue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.Integer getConfidence​(int value)  
      (package private) int[] getValue()
      Determines the maximum occurrence of a set value and returns all values which were set with this occurrence.
      (package private) void setValue​(int value)
      Add an occurrence of a value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • values

        private final java.util.Map<java.lang.Integer,​java.lang.Integer> values
    • Constructor Detail

      • BarcodeValue

        BarcodeValue()
    • Method Detail

      • setValue

        void setValue​(int value)
        Add an occurrence of a value
      • getValue

        int[] getValue()
        Determines the maximum occurrence of a set value and returns all values which were set with this occurrence.
        Returns:
        an array of int, containing the values with the highest occurrence, or null, if no value was set
      • getConfidence

        java.lang.Integer getConfidence​(int value)