com.atlassian.jira.plugin.report.impl
Class AbstractReport.MutableLong

java.lang.Object
  extended by java.lang.Number
      extended by com.atlassian.jira.plugin.report.impl.AbstractReport.MutableLong
All Implemented Interfaces:
Serializable
Enclosing class:
AbstractReport

public static class AbstractReport.MutableLong
extends Number

This utility class is much like an AtomicLong, but it does not have the thread-safety guarantees and overhead of that class.

See Also:
Serialized Form

Constructor Summary
AbstractReport.MutableLong(long initialValue)
           
 
Method Summary
 long add(long adjustment)
           
 double doubleValue()
           
 boolean equals(Object o)
           
 float floatValue()
           
 long getAndIncrement()
           
 int hashCode()
           
 long incrementAndGet()
           
 int intValue()
           
 long longValue()
           
 void setValue(long newValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractReport.MutableLong

public AbstractReport.MutableLong(long initialValue)
Method Detail

incrementAndGet

public long incrementAndGet()

getAndIncrement

public long getAndIncrement()

add

public long add(long adjustment)

setValue

public void setValue(long newValue)

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.