Class SortedMetadata<T extends Metadata>

  • Type Parameters:
    T - the Metadata type the instance contains.
    All Implemented Interfaces:
    java.lang.Iterable<T>

    @Deprecated
    public class SortedMetadata<T extends Metadata>
    extends java.lang.Object
    implements java.lang.Iterable<T>
    Deprecated.
    Will be removed in next minor release.
    SortedMetadata contains given Metadata, sorted by it's quality, Metadata with the highest quality first.
    • Field Detail

      • metadatas

        private final java.util.List<java.util.Collection<T extends Metadata>> metadatas
        Deprecated.
    • Constructor Detail

      • SortedMetadata

        private SortedMetadata​(java.util.Collection<Preference<T>> preferences)
        Deprecated.
        Creates a new SortedMetadata from the given Metadata.
        Parameters:
        preferences -
      • SortedMetadata

        private SortedMetadata​(java.util.List<java.util.Collection<T>> metadatas)
        Deprecated.
        Creates a new SortedMetadata from the sorted Metadata.
        Parameters:
        metadatas -
    • Method Detail

      • get

        public static SortedMetadata<MediaType> get​(MediaType respMediaType)
        Deprecated.
        Parameters:
        respMediaType -
        Returns:
        the media type as singleton of SortedMetadata
      • getEmptyMediaTypes

        public static SortedMetadata<MediaType> getEmptyMediaTypes()
        Deprecated.
        Returns an empty SortedMetadata
        Returns:
        an empty SortedMetadata
      • singleton

        public static SortedMetadata<MediaType> singleton​(MediaType mediaType)
        Deprecated.
        Parameters:
        mediaType -
        Returns:
        the media type as singleton as SortedMetadata
        See Also:
        Collections.singleton(Object)
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Checks, if this SortedMetadata is empty
        Returns:
        true, if this sorted metadata is empty, or false if not.
        See Also:
        Collection.isEmpty()
      • iterator

        public java.util.Iterator<T> iterator()
        Deprecated.
        Iterates over all the sorted Metadata.
        Specified by:
        iterator in interface java.lang.Iterable<T extends Metadata>
        See Also:
        Iterable.iterator()
      • listOfColls

        public java.lang.Iterable<java.lang.Iterable<T>> listOfColls()
        Deprecated.
        Returns the list of collections as Iterable of Iterables.
        Returns:
        the list of collections as Iterable of Iterables.
      • toString

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