Class CipherVersionImpl

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.mixin.UniversalIdAccessor

        org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B extends org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B>>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator, org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty
    • Constructor Summary

      Constructors 
      Constructor Description
      CipherVersionImpl​(java.lang.String aCipherUid, java.lang.String aCipher)
      Constructs the data structure with the required attributes.
    • Constructor Detail

      • CipherVersionImpl

        public CipherVersionImpl​(java.lang.String aCipherUid,
                                 java.lang.String aCipher)
        Constructs the data structure with the required attributes.
        Parameters:
        aCipherUid - The UID identifying the cipher.
        aCipher - The cipher related to the given UID
    • Method Detail

      • getUniversalId

        public java.lang.String getUniversalId​()
        Specified by:
        getUniversalId in interface org.refcodes.mixin.UniversalIdAccessor
      • getCipher

        public java.lang.String getCipher​()
        Returns the cipher attribute.
        Specified by:
        getCipher in interface CipherVersion
        Returns:
        The actual cipher.
      • compareTo

        public int compareTo​(CipherVersion aCipherVersion)
        Specified by:
        compareTo in interface java.lang.Comparable<CipherVersion>
      • hashCode

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

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