Package org.fjank.jcache

Examples of org.fjank.jcache.CacheRegion


        if(key==null) throw new NullPointerException("This Map does not permit null keys.");
        return acc.isPresent(key);
    }

    public boolean containsValue(Object value) {
       CacheRegion region = acc.getRegion();
       return region.containsValue(value);
    }
View Full Code Here


    }
    public Object remove(Object key, String group) {
        if (key==null || group==null) {
      throw new NullPointerException("This Map does not permit null keys.");
      }
        CacheRegion region = acc.getRegion();
        CacheGroup group2 = region.getGroup(group);
        if (group2 == null) {
            return null;
        }
        CacheObject object = (CacheObject) group2.get(key);
        if(object==null) {
View Full Code Here

     *         variables which is null.
     */
    protected final String getRegion(final Object handle)
        throws CacheException {
        final CacheObject cacheObj = convertHandle(handle);
        final CacheRegion region = cacheObj.getRegion();
        if (region == null) {
            throw new NullObjectException("The object " + cacheObj
                + " is not attached to a region.");
        }
        final Object name = region.getName();
        if (name != null) {
            return name.toString();
        } else {
            return null;
        }
View Full Code Here

TOP

Related Classes of org.fjank.jcache.CacheRegion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.