net.netheos.pcsapi.models
Class CQuota

java.lang.Object
  extended by net.netheos.pcsapi.models.CQuota

public class CQuota
extends Object

A simple class containing used/available storage information.

Negative values indicate that the information is not available from provider.


Constructor Summary
CQuota(long bytesUsed, long bytesAllowed)
           
 
Method Summary
 long getBytesAllowed()
          Get the maximum allowed bytes in the filesystem
 long getBytesUsed()
          Get the bytes used in the filesystem
 float getPercentUsed()
          Get the percent used in the filesystem
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CQuota

public CQuota(long bytesUsed,
              long bytesAllowed)
Method Detail

getPercentUsed

public float getPercentUsed()
Get the percent used in the filesystem

Returns:
used space as a float percentage (or -1.0 if unknown values)

getBytesUsed

public long getBytesUsed()
Get the bytes used in the filesystem

Returns:
The bytes count

getBytesAllowed

public long getBytesAllowed()
Get the maximum allowed bytes in the filesystem

Returns:
The bytes count

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.