com.vmware.vcloud.sdk
Class Result<T extends com.vmware.vcloud.api.rest.schema.ContainerType>

java.lang.Object
  extended by com.vmware.vcloud.sdk.VcloudResource<com.vmware.vcloud.api.rest.schema.ContainerType>
      extended by com.vmware.vcloud.sdk.Result<T>
Direct Known Subclasses:
RecordResult, ReferenceResult

public abstract class Result<T extends com.vmware.vcloud.api.rest.schema.ContainerType>
extends VcloudResource<com.vmware.vcloud.api.rest.schema.ContainerType>

This class represents the result of the query.

Since:
API 1.5, SDK 1.5
Author:
Ecosystem Engineering

Method Summary
 String getName()
          Returns the name of the query made.
 Integer getPage()
          Returns the page no.
 Integer getPageSize()
          Returns the page size.
 Long getTotal()
          Returns the total number of items.
 Boolean hasFirstPage()
          Returns true if the current result contains first page.
 Boolean hasLastPage()
          Returns true if the current result contains last page.
 Boolean hasNextPage()
          Returns true if the current result contains next page.
 Boolean hasPreviousPage()
          Returns true if the current result contains previous page.
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudResource
getReference, getResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
Returns the name of the query made.

Returns:
String

getPage

public Integer getPage()
Returns the page no.

Returns:
Integer

getPageSize

public Integer getPageSize()
Returns the page size.

Returns:
Integer

getTotal

public Long getTotal()
Returns the total number of items.

Returns:
Long

hasNextPage

public Boolean hasNextPage()
Returns true if the current result contains next page.

Returns:
Boolean

hasFirstPage

public Boolean hasFirstPage()
Returns true if the current result contains first page.

Returns:
Boolean

hasPreviousPage

public Boolean hasPreviousPage()
Returns true if the current result contains previous page.

Returns:
Boolean

hasLastPage

public Boolean hasLastPage()
Returns true if the current result contains last page.

Returns:
Boolean


Copyright © 2016. All Rights Reserved.