Example usage for java.util.concurrent.atomic AtomicInteger floatValue

List of usage examples for java.util.concurrent.atomic AtomicInteger floatValue

Introduction

In this page you can find the example usage for java.util.concurrent.atomic AtomicInteger floatValue.

Prototype

public float floatValue() 

Source Link

Document

Returns the current value of this AtomicInteger as a float after a widening primitive conversion, with memory effects as specified by VarHandle#getVolatile .

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    AtomicInteger atomicInteger = new AtomicInteger();

    System.out.println(atomicInteger.floatValue());
}