Class MultiKey4<K1,​K2,​K3,​K4>

  • Type Parameters:
    K1 - The first key.
    K2 - The second key.
    K3 - The third key.
    K4 - The fourth key.
    All Implemented Interfaces:
    java.lang.Comparable<MultiKey>

    public class MultiKey4<K1,​K2,​K3,​K4>
    extends MultiKey
    This MultiKey subclass uses generics to guarantee key type and order. MultiKey is unable to provide this type safety.
    Author:
    Charles Rapp
    • Constructor Detail

      • MultiKey4

        public MultiKey4​(K1 key1,
                         K2 key2,
                         K3 key3,
                         K4 key4)
        Creates a four value MultiKey.
        Parameters:
        key1 - the first key.
        key2 - the second key.
        key3 - the third key.
        key4 - the fourth key.