Class FullKeySet

java.lang.Object
ghidra.util.datastruct.FullKeySet
All Implemented Interfaces:
ShortKeySet, Serializable

public class FullKeySet extends Object implements ShortKeySet, Serializable
Implementation of the ShortKeySet interface that always contains all the possible keys. Used to save storage when sets are full.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    FullKeySet(int numKeys)
    Construct a new FullKeySet
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsKey(short key)
    Determines if a given key is in the set.
    short
    Returns the first (lowest) key in the set.
    short
    Returns the last (highest) key in the set.
    short
    getNext(short key)
    finds the next key that is in the set that is greater than the given key.
    short
    getPrevious(short key)
    finds the previous key that is in the set that is less than the given key.
    boolean
    Checks if the set is empty.
    void
    put(short key)
    Adds a key to the set.
    boolean
    remove(short key)
    Removes the key from the set.
    void
    Removes all keys from the set.
    int
    Returns the number of keys currently in the set.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FullKeySet

      public FullKeySet(int numKeys)
      Construct a new FullKeySet
      Parameters:
      numKeys - the number of keys in the set.
  • Method Details