Class Languages

  • All Implemented Interfaces:
    java.io.Serializable

    @Immutable
    public abstract class Languages
    extends java.lang.Object
    implements java.io.Serializable
    Model represents information about available languages and translation directions.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Languages()  
    • Constructor Detail

      • Languages

        public Languages()
    • Method Detail

      • languages

        @Nonnull
        public abstract java.util.Set<Language> languages()
        Get collection of available languages.
        Returns:
        languages
      • directions

        @Nonnull
        public abstract java.util.Set<Direction> directions()
        Get collection of possible directions. Each direction's language should be presented in languages().
        Returns:
        directions
      • of

        @Nonnull
        public static Languages of​(@Nonnull
                                   java.util.Collection<Language> languages,
                                   @Nonnull
                                   java.util.Collection<Direction> directions)
        A factory method to create object using given languages and directions.
        Parameters:
        languages - collection of languages
        directions - collection of directions
        Returns:
        "languages" object