com.stackmob.sdkapi
Class SMIncrement

java.lang.Object
  extended by com.stackmob.sdkapi.SMUpdate
      extended by com.stackmob.sdkapi.SMIncrement

public class SMIncrement
extends SMUpdate


Constructor Summary
SMIncrement(String field, long value)
          Creates a new increment operation
SMIncrement(String field, SMInt value)
          Creates a new increment operation
 
Method Summary
 String getField()
          Gets the field on which to execute this action.
 SMInt getValue()
          Gets the value to increment by
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMIncrement

public SMIncrement(String field,
                   SMInt value)
Creates a new increment operation

Parameters:
field - the field on which to operate
value - the value to increment by

SMIncrement

public SMIncrement(String field,
                   long value)
Creates a new increment operation

Parameters:
field - the field on which to operate
value - the value to increment by
Method Detail

getField

public String getField()
Gets the field on which to execute this action.

Returns:
the field

getValue

public SMInt getValue()
Gets the value to increment by

Returns:
the value


Copyright © 2012 StackMob. All Rights Reserved.