?? cacheablelong.java
字號:
/**
* $RCSfile: CacheableLong.java,v $
* $Revision: 1.1.1.1 $
* $Date: 2002/09/09 13:51:09 $
*
* New Jive from Jdon.com.
*
* This software is the proprietary information of CoolServlets, Inc.
* Use is subject to license terms.
*/
package com.jivesoftware.util;
/**
* Wrapper for long values so they can be treated as Cacheable objects.
*/
public class CacheableLong implements Cacheable {
/**
* Wrapped long object.
*/
private long longValue;
/**
* Creates a new CacheableLong.
*
* @param string the Long object to wrap.
*/
public CacheableLong(long longValue) {
this.longValue = longValue;
}
/**
* Returns the Long wrapped by the CacheableLong object.
*
* @return the Long object.
*/
public long getLong() {
return longValue;
}
//FROM THE CACHEABLE INTERFACE//
public int getSize() {
return CacheSizes.sizeOfLong();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -