org.encog.util.obj

## Class ObjectHolder<T>

- java.lang.Object
- - org.encog.util.obj.ObjectHolder<T>

- Type Parameters:
    `T` - The type of object to hold.
  All Implemented Interfaces:
    Serializable

      public class ObjectHolder<T>
      extends Object
      implements Serializable

  Holds an object of the specified type. Used with the ObjectChooser. Associates an object with a probability.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ObjectHolder(T theObj, double probability)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `getObj()`
    `double` | `getProbability()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ObjectHolder

          public ObjectHolder(T theObj,
                      double probability)

  - ### Method Detail

    - #### getObj

          public T getObj()

      Returns:
        the opp

    - #### getProbability

          public double getProbability()

      Returns:
        the probability

Copyright © 2014. All Rights Reserved.