Class Language


  • @Entity
    public class Language
    extends Object
    Class that represents language
    • Constructor Detail

      • Language

        public Language​(String name,
                        String code)
        Creates new instance with give params
        Parameters:
        name - language name
        code - language code
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Gets whether two instances represents the same language
        Overrides:
        equals in class Object
        Parameters:
        o - comparing language
        Returns:
        whether two instances represents the same language
      • hashCode

        public int hashCode()
        Gets the hash code
        Overrides:
        hashCode in class Object
        Returns:
        hash code