Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 public class NSE_Sample {
     class One {
         private int o;
 
         public boolean equals(Object that) {
             if (that instanceof One) {
                 return  == ((Onethat).;
             } else if (that instanceof Two) {
                 return  == ((Twothat).;
            }
            return false;
        }
    }
    class Two {
        public int t;
        public boolean equals(Object that) {
            if (that instanceof Two) {
                return  == ((Twothat).;
            }
            return false;
        }
    }
    class Parent {
        private int o;
        public boolean equals(Object that) {
            if (that instanceof Parent) {
                return  == ((Parentthat).;
            } else if (that instanceof Two) {
                return  == ((Childthat).;
            }
            return false;
        }
    }
    class Child extends Parent {
        public int t;
        public boolean equals(Object that) {
            if (that instanceof Child) {
                return  == ((Childthat).;
            }
            return false;
        }
    }
New to GrepCode? Check out our FAQ X