All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.eBus.util.MultiKey4 Maven / Gradle / Ivy

//
// Copyright 2005 Charles W. Rapp
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

package net.sf.eBus.util;

/**
 * This {@link MultiKey} subclass uses generics to guarantee
 * key type and order. {@link MultiKey} is unable to provide
 * this type safety.
 * @param  The first key.
 * @param  The second key.
 * @param  The third key.
 * @param  The fourth key.
 *
 * @author Charles Rapp
 */

public class MultiKey4
    extends MultiKey
{
//---------------------------------------------------------------
// Member data.
//

    //-----------------------------------------------------------
    // Constants.
    //

    /**
     *  This is eBus version 2.1.0.
     */
    private static final long serialVersionUID = 0x050200L;

//---------------------------------------------------------------
// Member methods.
//

    //-----------------------------------------------------------
    // Constructors.
    //

    /**
     * Creates a four value {@link MultiKey}.
     * @param key1 the first key.
     * @param key2 the second key.
     * @param key3 the third key.
     * @param key4 the fourth key.
     */
    public MultiKey4(final K1 key1,
                     final K2 key2,
                     final K3 key3,
                     final K4 key4)
    {
        super (key1, key2, key3, key4);
    } // end of MultiKey4(K1, K2, K3, K4)

    //
    // end of Constructors.
    //-----------------------------------------------------------
} // end of class MultiKey4(MultiKey4<>)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy