public class Word extends Object implements IClusterable
public Word(String word)
word
- The wordpublic String asString()
public String asString(boolean hideUnguessed)
hideUnguessed
- True if unguessed letters should be hiddenpublic boolean equals(Object object)
equals
in class Object
Object.equals(java.lang.Object)
public boolean guess(Letter letter)
letter
- The letter to guesspublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean isGuessed()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.