Class Building


  • @Entity
    public class Building
    extends Object
    Represents a building belonging to a cultural institution
    • Constructor Detail

      • Building

        public Building()
    • Method Detail

      • onCreate

        protected void onCreate()
        sets parameters for newly created buildings
      • equals

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

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