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

java.lang.Object
  extended by com.atlassian.confluence.api.model.content.Version

@ExperimentalApi
public class Version
extends Object

Represents the version of a piece of Content.


Nested Class Summary
static class Version.VersionBuilder
          Creates Version instances.
 
Method Summary
static Version.VersionBuilder builder()
          Returns a Version.VersionBuilder instance that can be used to create a new Version object.
static Version.VersionBuilder builder(Version version)
           
static Reference<Version> buildReference(int number)
           
static Reference<Version> buildReference(Reference<Content> contentRef, int number)
          Deprecated. since 5.6 use buildReference(int)
 boolean equals(Object o)
           
 Person getBy()
           
 String getMessage()
           
 int getNumber()
           
static int getVersionNumber(Reference<Version> versionRef)
           
 org.joda.time.DateTime getWhen()
           
 int hashCode()
           
 boolean isMinorEdit()
           
 Version.VersionBuilder nextBuilder()
          Creates a version builder with the version number set as the next version after this version
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

builder

public static Version.VersionBuilder builder()
Returns a Version.VersionBuilder instance that can be used to create a new Version object.


builder

public static Version.VersionBuilder builder(Version version)

buildReference

public static Reference<Version> buildReference(int number)

buildReference

@Deprecated
public static Reference<Version> buildReference(Reference<Content> contentRef,
                                                           int number)
Deprecated. since 5.6 use buildReference(int)


getVersionNumber

public static int getVersionNumber(Reference<Version> versionRef)

getBy

public Person getBy()

getWhen

public org.joda.time.DateTime getWhen()

getMessage

public String getMessage()

getNumber

public int getNumber()

isMinorEdit

public boolean isMinorEdit()

nextBuilder

public Version.VersionBuilder nextBuilder()
Creates a version builder with the version number set as the next version after this version

Returns:
a version builder with the version number initialized

equals

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

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.