public class RabbitDisguise extends AgeableDisguise
Modifier and Type | Class and Description |
---|---|
static class |
RabbitDisguise.RabbitType
Represents the available rabbit types.
|
Constructor and Description |
---|
RabbitDisguise()
Creates an instance.
|
RabbitDisguise(boolean adult)
Creates an instance.
|
RabbitDisguise(boolean adult,
RabbitDisguise.RabbitType rabbitType)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
RabbitDisguise |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
RabbitDisguise.RabbitType |
getRabbitType()
Returns the rabbit type.
|
void |
setRabbitType(RabbitDisguise.RabbitType rabbitType)
Sets the rabbit type.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
isAdult, setAdult
getCustomName, setCustomName
public RabbitDisguise()
public RabbitDisguise(boolean adult)
adult
- whether the rabbit should be an adultpublic RabbitDisguise(boolean adult, RabbitDisguise.RabbitType rabbitType)
adult
- whether the rabbit should be an adultrabbitType
- the type of rabbit this should bepublic RabbitDisguise.RabbitType getRabbitType()
public void setRabbitType(RabbitDisguise.RabbitType rabbitType)
rabbitType
- the rabbit typepublic RabbitDisguise clone()
clone
in class AgeableDisguise
public boolean equals(java.lang.Object object)
equals
in class AgeableDisguise
true
if this object is the same as the object
argument; false
otherwisepublic java.lang.String toString()
toString
in class AgeableDisguise