Class MetadataImpl<T>

    • Constructor Detail

      • MetadataImpl

        public MetadataImpl​(T value)
        Parameters:
        value - type of metadata that this class holds
      • MetadataImpl

        public MetadataImpl​(T value,
                            String location)
        Parameters:
        value - type of metadata that this class holds
        location - String representation of where is this metadata stored
    • Method Detail

      • from

        public static <T> MetadataImpl<T> from​(T value)
      • getLocation

        public String getLocation()
        Description copied from interface: Metadata
        The location of the metadata, used in error and log messages
        Specified by:
        getLocation in interface Metadata<T>
        Returns:
        location of the metadata, used in error and log messages
      • getValue

        public T getValue()
        Description copied from interface: Metadata
        The metadata value
        Specified by:
        getValue in interface Metadata<T>
        Returns:
        the metadata value