Errai 3.0.1-SNAPSHOT

org.jboss.errai.otec.client.mutation
Class CharacterMutation

java.lang.Object
  extended by org.jboss.errai.otec.client.mutation.CharacterMutation
All Implemented Interfaces:
Mutation<StringState,Character>

public class CharacterMutation
extends Object
implements Mutation<StringState,Character>

Author:
Christian Sadilek , Mike Brock

Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

noop

public static CharacterMutation noop(int position)

of

public static CharacterMutation of(MutationType type,
                                   int position,
                                   char data)

getType

public MutationType getType()
Specified by:
getType in interface Mutation<StringState,Character>

getPosition

public int getPosition()
Specified by:
getPosition in interface Mutation<StringState,Character>

getData

public Character getData()
Specified by:
getData in interface Mutation<StringState,Character>

length

public int length()
Specified by:
length in interface Mutation<StringState,Character>

apply

public void apply(StringState state)
Specified by:
apply in interface Mutation<StringState,Character>

combineWith

public Mutation<StringState,Character> combineWith(Mutation<StringState,Character> combine)
Specified by:
combineWith in interface Mutation<StringState,Character>

newBasedOn

public Mutation<StringState,Character> newBasedOn(int index)
Specified by:
newBasedOn in interface Mutation<StringState,Character>

newBasedOn

public Mutation<StringState,Character> newBasedOn(int index,
                                                  int truncate)
Specified by:
newBasedOn in interface Mutation<StringState,Character>

toString

public String toString()
Overrides:
toString in class Object

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.