com.atlassian.mywork.rest
Class Position

java.lang.Object
  extended by com.atlassian.mywork.rest.Position

public class Position
extends java.lang.Object

This class describes a position in a list of entities.


Constructor Summary
Position(java.lang.Long before)
          Creates a new position that is before an entity with the given id, or the last position if the given id is null.
 
Method Summary
 java.lang.Long getBefore()
          Returns id of an entity immediately after this position or null if this is the last position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Position

public Position(java.lang.Long before)
Creates a new position that is before an entity with the given id, or the last position if the given id is null.

Parameters:
before - id of an entity immediately after this position or null if this is the last position
Method Detail

getBefore

public java.lang.Long getBefore()
Returns id of an entity immediately after this position or null if this is the last position.

Returns:
id of an entity immediately after this position or null if this is the last position


Copyright © 2013 Atlassian. All Rights Reserved.