Class ArrayFunctionSet.ArrayGeneratingFunction

    • Constructor Detail

      • ArrayGeneratingFunction

        public ArrayGeneratingFunction()
    • Method Detail

      • ping

        public void ping()
        Callback function, invoked when a SimpleArrayItem created by this function needs to be converted to an ImmutableArrayItem
        Specified by:
        ping in interface Pingable
      • expectedSize

        protected int expectedSize()
        Get the estimated number of members in the array, based on past experience
        Returns:
        the average size of arrays previously created, plus a little margin for expansion
      • makeArray

        protected ArrayItem makeArray​(java.util.List<GroundedValue> members)
        Construct an array, given a list of members
        Parameters:
        members - the members of the array
        Returns:
        the constructed array