Top Fields Constructors Methods
io.vertx.core.spi.cluster.impl.selector

pack-priv Class Index

extends Object
implements IntUnaryOperator
Class Inheritance
All Implemented Interfaces
java.util.function.IntUnaryOperator
Imports
java.util.concurrent.atomic.AtomicInteger, java.util.function.IntUnaryOperator

Author
Thomas Segismont

Field Summary

Modifier and TypeField and Description
private final AtomicInteger
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
Index(int max)

Method Summary

Modifier and TypeMethod and Description
public int
applyAsInt(int
the operand
i
)

Implements java.util.function.IntUnaryOperator.applyAsInt.

Applies this operator to the given operand.

pack-priv int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idxback to summary
private final AtomicInteger idx
maxback to summary
private final int max

Constructor Detail

Indexback to summary
pack-priv Index(int max)

Method Detail

applyAsIntback to summary
public int applyAsInt(int i)

Implements java.util.function.IntUnaryOperator.applyAsInt.

Doc from java.util.function.IntUnaryOperator.applyAsInt.

Applies this operator to the given operand.

Parameters
i:int

the operand

Returns:int

the operator result

Annotations
@Override
nextValback to summary
pack-priv int nextVal()