Package ec.gp

# Class GPAtomicType

java.lang.Object
ec.gp.GPType
ec.gp.GPAtomicType

All Implemented Interfaces:
  `Clique`, `Setup`, `Serializable`

public final class GPAtomicType extends GPType
A GPAtomicType is a simple, atomic GPType. For more information, see GPType.

See Also:
  - `GPType`
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class ec.gp.GPType

  `name, P_NAME, type`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GPAtomicType()`
  Don't use this constructor unless you call setup(...) immediately after it.
  `GPAtomicType(String n)`
  Use this constructor for GPAtomic Type unless you know what you're doing

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final boolean`
  `compatibleWith(GPInitializer initializer, GPType t)`
  Am I compatible with ("fit" with) t? For two atomic types, this is done by direct pointer equality.

  ### Methods inherited from class ec.gp.GPType

  `setup, toString, typeFor`

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

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

- ## Constructor Details

  - ### GPAtomicType

    public GPAtomicType(String n)
    Use this constructor for GPAtomic Type unless you know what you're doing

  - ### GPAtomicType

    public GPAtomicType()
    Don't use this constructor unless you call setup(...) immediately after it.

- ## Method Details

  - ### compatibleWith

    public final boolean compatibleWith(GPInitializer initializer, GPType t)
    Description copied from class: `GPType`
    Am I compatible with ("fit" with) t? For two atomic types, this is done by direct pointer equality. For two set types, this is done by determining if the intersection is nonempty. A set type is compatible with an atomic type if it contains the atomic type in its set.
    Specified by:
      `compatibleWith` in class `GPType`