Class MusicalWork

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMPOSER  
      static java.lang.String TITLE  
    • Constructor Summary

      Constructors 
      Constructor Description
      MusicalWork​(java.lang.String title, java.lang.String composer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getComposer()  
      java.lang.String getTitle()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MusicalWork

        public MusicalWork​(java.lang.String title,
                           java.lang.String composer)
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
      • getComposer

        public java.lang.String getComposer()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object