Ignore:
Timestamp:
01/30/15 18:01:08 (9 years ago)
Author:
funger
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-android/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/CharacterTyped.java

    r1819 r1868  
    5858    @Override 
    5959    public boolean startsLogicalSequence() { 
    60         return false; 
     60        throw new UnsupportedOperationException("not implemented yet"); 
    6161    } 
    6262 
    6363    @Override 
    6464    public boolean finishesLogicalSequence() { 
    65         return false; 
     65        throw new UnsupportedOperationException("not implemented yet"); 
    6666    } 
    6767 
     
    7373    @Override 
    7474    public boolean equals(Object obj) { 
    75         if (obj instanceof CharacterTyped) { 
    76             return (((CharacterTyped) obj).getString() == getString()); 
     75        if(obj == this){ 
     76            return true; 
    7777        } 
    78         return false; 
     78        if(!(obj instanceof CharacterTyped)){ 
     79            return false; 
     80        } 
     81        CharacterTyped character = (CharacterTyped)obj; 
     82        return character.string.equals(string); 
     83         
    7984    } 
    8085 
     
    8792    public int hashCode() { 
    8893        return getString().hashCode(); 
     94    } 
     95     
     96    /* 
     97     * (non-Javadoc) 
     98     *  
     99     * @see java.lang.Object#toString() 
     100     */ 
     101    @Override 
     102    public String toString() { 
     103        return "StringTyped: " + string; 
    89104    } 
    90105 
Note: See TracChangeset for help on using the changeset viewer.