【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-CachableIF.java,希望本篇文章对您学习有所帮助。
/* -*- mode: Java; fill-column: 72 -*-
* The contents of this file are subject to the ClickBlocks Public
* License Version 1.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.clickblocks.org
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied, including, but not limited to, the implied warranties of
* merchantability, fitness for a particular purpose and
* non-infringement. See the License for the specific language
* governing rights and limitations under the License.
*
* ClickBlocks, the ClickBlocks logo and combinations thereof are
* trademarks of ClickBlocks, LLC in the United States and other
* countries.
*
* The Initial Developer of the Original Code is ClickBlocks, LLC.
* Portions created by ClickBlocks, LLC are Copyright (C) 2000.
* All Rights Reserved.
*
*/
/*
* $Log: CachableIF.java,v $
* Revision 1.4 2000/12/03 14:53:04 mgrand
* spell checked
*
* Revision 1.3 2000/11/14 12:25:38 mgrand
* Moved to clickblocks packages.
*
* Revision 1.2 2000/10/30 11:52:06 mgrand
* Converted packages names to clickblocks
*
* Revision 1.1.1.1 2000/10/30 01:37:40 mgrand
* reestablished local repository
*/
package org.clickblocks.persistence;
/**
* If the persistence of a class's instances is managed by
* classes that implement a sub-interface of
* <code>PersistenceIF</code>, then the class should implement
* this interface.
*
* @stereotype description
* @author Mark Grand
*/
public interface CachableIF extends PersistableIF {
/**
* Return an object that encapsulates the object id for
* this object. Whatever the class of the object is, it
* must be the case that if two objects <code>obj1</code>
* and <code>obj2</code> encapsulate the object id of the
* same object then
*<format>
* obj1.equals(obj2)
*</format>
* is true and
*<format>
* obj1.hashCode()==obj2.hashCode()
*</format>
* is also true. */
public Object getIdObject() ;
} // interface CachableIF
// LocalWords: CachableIF java clickblocks PersistenceIF obj hashCode
上一篇:
c3_jsp.java
下一篇:
论电子商务与现代物流的协同发展