Class IntRef

java.lang.Object
io.jenetics.internal.util.IntRef
All Implemented Interfaces:
Serializable

public final class IntRef extends Object implements Serializable
Int reference class, which allows the usage in an lambda expression.
Since:
3.0
Version:
3.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The actual int value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new IntRef object initialized with zero.
    IntRef(int initialValue)
    Create a new IntRef object with the given initial value.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • value

      public int value
      The actual int value.
  • Constructor Details

    • IntRef

      public IntRef(int initialValue)
      Create a new IntRef object with the given initial value.
      Parameters:
      initialValue - the initial int value of the reference.
    • IntRef

      public IntRef()
      Create a new IntRef object initialized with zero.
  • Method Details