Class KeyedItem.Usage

    • Constructor Detail

    • Method Detail

      • hasUniqueValue

        public boolean hasUniqueValue()
        Check if there is exactly one value for this key.
        Returns:
        true if there was exactly one value.
      • unused

        public boolean unused()
        Check if this key was not used in any primitive
        Returns:
        true if it was unused.
      • hadKeys

        public boolean hadKeys()
        Check if we encountered any primitive that had any keys
        Returns:
        true if any of the primitives had any tags.
      • getSelectedCount

        public int getSelectedCount()
        Returns the number of primitives selected.
        Returns:
        the number of primitives selected.
      • splitValues

        public KeyedItem.Usage splitValues​(String delimiter)
        Splits multiple values and adds their usage counts as single value.

        A value of regional;pizza will increment the count of regional and of pizza.

        Parameters:
        delimiter - The delimiter used for splitting.
        Returns:
        A new usage object with the new counts.