Errai 3.0.1-SNAPSHOT

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

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

@Portable
public class StringMutation
extends Object
implements Mutation<StringState,String>

Author:
Christian Sadilek , Mike Brock

Method Summary
 void apply(StringState state)
           
 Mutation<StringState,String> combineWith(Mutation<StringState,String> combine)
           
 String getData()
           
 int getPosition()
           
 MutationType getType()
           
 int length()
           
 Mutation<StringState,String> newBasedOn(int index)
           
 Mutation<StringState,String> newBasedOn(int index, int truncate)
           
static StringMutation of(MutationType type, int position, String data)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

of

public static StringMutation of(MutationType type,
                                int position,
                                String data)

getType

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

getPosition

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

getData

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

length

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

apply

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

newBasedOn

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

newBasedOn

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

combineWith

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

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.