Package io.jenetics

Interface BoundedGene<A extends Comparable<? super A>,​G extends BoundedGene<A,​G>>

    • Method Detail

      • min

        A min()
        Return the allowed min value.
        Returns:
        The allowed min value.
      • max

        A max()
        Return the allowed max value.
        Returns:
        The allowed max value.
      • isValid

        default boolean isValid()
        Description copied from interface: Verifiable
        Check if this object is valid.
        Specified by:
        isValid in interface Verifiable
        Returns:
        true if this object is valid, false otherwise.
      • newInstance

        G newInstance​(A value)
        Create a new gene from the given value and the current bounds.
        Specified by:
        newInstance in interface Gene<A extends Comparable<? super A>,​G extends BoundedGene<A,​G>>
        Parameters:
        value - the value of the new gene.
        Returns:
        a new gene with the given value.