Class MultiKey2<K1,​K2>

  • Type Parameters:
    K1 - The first key type.
    K2 - The second key type.
    All Implemented Interfaces:
    Comparable<MultiKey>

    public class MultiKey2<K1,​K2>
    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

      • MultiKey2

        public MultiKey2​(K1 key1,
                         K2 key2)
        Creates a two value MultiKey.
        Parameters:
        key1 - the first key.
        key2 - the second key.