001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 * 019 */ 020 package org.apache.directory.shared.ldap.util; 021 022 023 /** 024 * Defines a simple key value pair. 025 * <p> 026 * A Map Entry has considerable additional semantics over and above a simple 027 * key-value pair. This interface defines the minimum key value, with just the 028 * two get methods. 029 * 030 * @since Commons Collections 3.0 031 * @version $Revision: 437007 $ $Date: 2006-08-26 01:06:17 +0200 (Sat, 26 Aug 2006) $ 032 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 033 */ 034 public interface KeyValue 035 { 036 037 /** 038 * Gets the key from the pair. 039 * 040 * @return the key 041 */ 042 Object getKey(); 043 044 045 /** 046 * Gets the value from the pair. 047 * 048 * @return the value 049 */ 050 Object getValue(); 051 052 }