public class CharacterMutation extends Object implements Mutation<StringState,Character>
Modifier and Type | Method and Description |
---|---|
void |
apply(StringState state) |
Mutation<StringState,Character> |
combineWith(Mutation<StringState,Character> combine) |
Character |
getData() |
int |
getPosition() |
MutationType |
getType() |
int |
length() |
Mutation<StringState,Character> |
newBasedOn(int index) |
Mutation<StringState,Character> |
newBasedOn(int index,
int truncate) |
static CharacterMutation |
noop(int position) |
static CharacterMutation |
of(MutationType type,
int position,
char data) |
String |
toString() |
public static CharacterMutation noop(int position)
public static CharacterMutation of(MutationType type, int position, char data)
public MutationType getType()
getType
in interface Mutation<StringState,Character>
public int getPosition()
getPosition
in interface Mutation<StringState,Character>
public Character getData()
getData
in interface Mutation<StringState,Character>
public int length()
length
in interface Mutation<StringState,Character>
public void apply(StringState state)
apply
in interface Mutation<StringState,Character>
public Mutation<StringState,Character> combineWith(Mutation<StringState,Character> combine)
combineWith
in interface Mutation<StringState,Character>
public Mutation<StringState,Character> newBasedOn(int index)
newBasedOn
in interface Mutation<StringState,Character>
public Mutation<StringState,Character> newBasedOn(int index, int truncate)
newBasedOn
in interface Mutation<StringState,Character>
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.