jdk/src/solaris/classes/sun/print/IPPPrintService.java
changeset 1722 b676952a5943
parent 1721 7a86d7e13fdf
child 1727 5e5e0235b14f
equal deleted inserted replaced
1721:7a86d7e13fdf 1722:b676952a5943
     1 /*
     1 /*
     2  * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
  1862     public boolean equals(Object obj) {
  1862     public boolean equals(Object obj) {
  1863         return  (obj == this ||
  1863         return  (obj == this ||
  1864                  (obj instanceof IPPPrintService &&
  1864                  (obj instanceof IPPPrintService &&
  1865                   ((IPPPrintService)obj).getName().equals(getName())));
  1865                   ((IPPPrintService)obj).getName().equals(getName())));
  1866     }
  1866     }
       
  1867 
       
  1868     public int hashCode() {
       
  1869         return this.getClass().hashCode()+getName().hashCode();
       
  1870     }
  1867 }
  1871 }