Ignore:
Timestamp:
08/29/12 10:05:50 (12 years ago)
Author:
sherbold
Message:
  • added getStringIdentifier() to interface IEventTarget
  • all event types and targets now implement equals and hashCode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseDoubleClick.java

    r655 r681  
    7878    } 
    7979 
     80    /* 
     81     * (non-Javadoc) 
     82     *  
     83     * @see java.lang.Object#equals(java.lang.Object) 
     84     */ 
     85    @Override 
     86    public boolean equals(Object obj) { 
     87        if (obj instanceof MouseDoubleClick) { 
     88            return getButton().equals(((MouseDoubleClick) obj).getButton()); 
     89        } 
     90        return false; 
     91    } 
     92 
     93    /* 
     94     * (non-Javadoc) 
     95     *  
     96     * @see java.lang.Object#hashCode() 
     97     */ 
     98    @Override 
     99    public int hashCode() { 
     100        return getButton().hashCode(); 
     101    } 
    80102} 
Note: See TracChangeset for help on using the changeset viewer.