Package io.jenetics

Class MutatorResult<T>

    • Method Detail

      • result

        public T result()
        Return the mutation result.
        Returns:
        the mutation result
      • mutations

        public int mutations()
        Return the number of mutations for this mutation result.
        Returns:
        the number of mutations
      • of

        public static <T> MutatorResult<T> of​(T result,
                                              int mutations)
        Create a new mutation result with the given values.
        Type Parameters:
        T - the mutation result type
        Parameters:
        result - the mutation result
        mutations - the number of mutations
        Returns:
        a new mutation result
        Throws:
        IllegalArgumentException - if the given mutations is negative
        NullPointerException - if the given mutation result is null
      • of

        public static <T> MutatorResult<T> of​(T result)
        Create a new mutation result with the given result. The number of mutations is set to zero.
        Type Parameters:
        T - the mutation result type
        Parameters:
        result - the mutation result
        Returns:
        a new mutation result
        Throws:
        NullPointerException - if the given mutation result is null