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

com.workplacesystems.utilsj.collections.Map3 Maven / Gradle / Ivy

Go to download

Various Java utility classes including transactional collections, collection helpers, synchronisation utilities, thread utilities and build utilities classes.

There is a newer version: 1.1.4
Show newest version
/*
 * Copyright 2010 Workplace Systems PLC (http://www.workplacesystems.com/).
 *
 * 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 com.workplacesystems.utilsj.collections;

import java.util.List;
import java.util.Set;

/**
 * Simple Map with three-level key.
 */
public interface Map3
{
    public void clear();

    public boolean containsKey(Object key1, Object key2, Object key3);

    public boolean containsValue(Object value);

    public V get(Object key1, Object key2, Object key3);

    public Map2 getMap(Object key1);

    public boolean isEmpty();

    /** replace [key1,key2,key3] value, returning old value */
    public V put(K1 key1, K2 key2, K3 key3, V value);

    /** remove [key1,key2,key3] value, returning old value */
    public V remove(Object key1, Object key2, Object key3);

    public int size();

    public Set key1Set();
    
    /** separate list of values, NOT backed by this map */
    public List values();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy