Class EANManufacturerOrgSupport


  • final class EANManufacturerOrgSupport
    extends java.lang.Object
    Records EAN prefix to GS1 Member Organization, where the member organization correlates strongly with a country. This is an imperfect means of identifying a country of origin by EAN-13 barcode value. See http://en.wikipedia.org/wiki/List_of_GS1_country_codes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> countryIdentifiers  
      private java.util.List<int[]> ranges  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void add​(int[] range, java.lang.String id)  
      private void initIfNeeded()  
      (package private) java.lang.String lookupCountryIdentifier​(java.lang.String productCode)  
      • Methods inherited from class java.lang.Object

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

      • ranges

        private final java.util.List<int[]> ranges
      • countryIdentifiers

        private final java.util.List<java.lang.String> countryIdentifiers
    • Constructor Detail

      • EANManufacturerOrgSupport

        EANManufacturerOrgSupport()
    • Method Detail

      • lookupCountryIdentifier

        java.lang.String lookupCountryIdentifier​(java.lang.String productCode)
      • add

        private void add​(int[] range,
                         java.lang.String id)
      • initIfNeeded

        private void initIfNeeded()