Class DefaultContentMetadata

    • Constructor Detail

      • DefaultContentMetadata

        public DefaultContentMetadata()
      • DefaultContentMetadata

        public DefaultContentMetadata​(Map<String,​byte[]> metadata)
        Parameters:
        metadata - The metadata entries in their raw byte array form.
    • Method Detail

      • entrySet

        public Set<Map.Entry<String,​byte[]>> entrySet()
        Returns the set of metadata entries in their raw byte array form.
      • get

        @Nullable
        public final byte[] get​(String name,
                                @Nullable
                                byte[] defaultValue)
        Description copied from interface: ContentMetadata
        Returns a metadata value.
        Specified by:
        get in interface ContentMetadata
        Parameters:
        name - Key of the metadata to be returned.
        defaultValue - Value to return if the metadata doesn't exist.
        Returns:
        The metadata value.
      • get

        @Nullable
        public final String get​(String name,
                                @Nullable
                                String defaultValue)
        Description copied from interface: ContentMetadata
        Returns a metadata value.
        Specified by:
        get in interface ContentMetadata
        Parameters:
        name - Key of the metadata to be returned.
        defaultValue - Value to return if the metadata doesn't exist.
        Returns:
        The metadata value.
      • get

        public final long get​(String name,
                              long defaultValue)
        Description copied from interface: ContentMetadata
        Returns a metadata value.
        Specified by:
        get in interface ContentMetadata
        Parameters:
        name - Key of the metadata to be returned.
        defaultValue - Value to return if the metadata doesn't exist.
        Returns:
        The metadata value.
      • equals

        public boolean equals​(@Nullable
                              Object o)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object