< prev index next >

src/java.desktop/share/classes/com/sun/media/sound/ModelIdentifier.java

Print this page

        

@@ -20,10 +20,11 @@
  *
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
+
 package com.sun.media.sound;
 
 /**
  * This class stores the identity of source and destinations in connection
  * blocks, see ModelConnectionBlock.

@@ -132,17 +133,19 @@
 
     public void setVariable(String variable) {
         this.variable = variable;
     }
 
+    @Override
     public int hashCode() {
         int hashcode = instance;
         if(object != null) hashcode |= object.hashCode();
         if(variable != null) hashcode |= variable.hashCode();
         return  hashcode;
     }
 
+    @Override
     public boolean equals(Object obj) {
         if (!(obj instanceof ModelIdentifier))
             return false;
 
         ModelIdentifier mobj = (ModelIdentifier)obj;

@@ -157,10 +160,11 @@
         if (!(variable == null || variable.equals(mobj.variable)))
             return false;
         return true;
     }
 
+    @Override
     public String toString() {
         if (variable == null) {
             return object + "[" + instance + "]";
         } else {
             return object + "[" + instance + "]" + "." + variable;
< prev index next >