Class Code<T extends Code<T>>

    • Field Detail

      • CODE_PROVIDER_COMPARATOR

        public static final java.util.Comparator<ICodeHolder> CODE_PROVIDER_COMPARATOR
    • Constructor Detail

      • Code

        public Code()
    • Method Detail

      • setCode

        public final void setCode​(java.lang.String code)
      • getCode

        public final java.lang.String getCode()
        Description copied from interface: ICodeHolder
        Returns the code.
        Specified by:
        getCode in interface ICodeHolder
      • compareTo

        public final int compareTo​(T o)
        Specified by:
        compareTo in interface java.lang.Comparable<T extends Code<T>>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • extractCodes

        public static final java.util.List<java.lang.String> extractCodes​(java.util.Collection<? extends ICodeHolder> codeProviders)
      • extractCodes

        public static final java.util.List<java.lang.String> extractCodes​(ICodeHolder[] codeProviders)
      • extractCodesToArray

        public static final java.lang.String[] extractCodesToArray​(java.util.Collection<? extends ICodeHolder> codeProviders)