Class AbstractBinaryAttributeHandler<T>

  • Type Parameters:
    T - type of object to handle
    All Implemented Interfaces:
    Function<T,​T>
    Direct Known Subclasses:
    ObjectGuidHandler, ObjectSidHandler

    public abstract class AbstractBinaryAttributeHandler<T>
    extends AbstractEntryHandler<T>
    Base class for entry handlers that convert a binary attribute to its string form.
    • Field Detail

      • HASH_CODE_SEED

        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • attributeName

        private String attributeName
        attribute name.
    • Constructor Detail

      • AbstractBinaryAttributeHandler

        public AbstractBinaryAttributeHandler()
    • Method Detail

      • getAttributeName

        public String getAttributeName()
        Returns the attribute name to convert from binary to string.
        Returns:
        attribute name
      • setAttributeName

        public void setAttributeName​(String name)
        Sets the attribute name to convert from binary to string.
        Parameters:
        name - of the attribute
      • convertValue

        protected abstract String convertValue​(byte[] value)
        Converts the supplied binary value to its string form.
        Parameters:
        value - to convert
        Returns:
        string form of the value