com.atlassian.confluence.api.model.content
Class Position

java.lang.Object
  extended by com.atlassian.confluence.api.model.content.Position
All Implemented Interfaces:
Comparable<Position>

@ExperimentalApi
public final class Position
extends Object
implements Comparable<Position>

Represents the position of a piece of Content among its siblings. A position of NONE means that Content will appear after any positioned siblings.


Field Summary
static Position NONE
           
static String POSITION_KEY
          Used in the Content extensions map.
 
Method Summary
 int compareTo(Position p)
           
static Position deserialise(String str)
           
 boolean equals(Object o)
           
 int hashCode()
           
static Position of(Integer position)
           
 Object serialise()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POSITION_KEY

public static final String POSITION_KEY
Used in the Content extensions map.

See Also:
Constant Field Values

NONE

public static final Position NONE
Method Detail

of

public static Position of(Integer position)

serialise

public Object serialise()

deserialise

public static Position deserialise(String str)

compareTo

public int compareTo(Position p)
Specified by:
compareTo in interface Comparable<Position>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.