com.atlassian.confluence.status.service.systeminfo
Class MemoryInfo.Bytes

java.lang.Object
  extended by com.atlassian.confluence.status.service.systeminfo.MemoryInfo.Bytes
Enclosing class:
MemoryInfo

public static class MemoryInfo.Bytes
extends java.lang.Object

Represents some number of bytes. A convenience class so we don't have to have lots of separate helper methods to convert numbers to megabytes.


Constructor Summary
MemoryInfo.Bytes(long value)
           
 
Method Summary
 long bytes()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 long megabytes()
           
 MemoryInfo.Bytes minus(MemoryInfo.Bytes b)
           
 MemoryInfo.Bytes plus(MemoryInfo.Bytes b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryInfo.Bytes

public MemoryInfo.Bytes(long value)
Method Detail

bytes

public long bytes()

megabytes

public long megabytes()

plus

public MemoryInfo.Bytes plus(MemoryInfo.Bytes b)

minus

public MemoryInfo.Bytes minus(MemoryInfo.Bytes b)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.