org.openjena.atlas.lib.cache
Class CacheSetLRU<T>

java.lang.Object
  extended by org.openjena.atlas.lib.cache.CacheSetLRU<T>
All Implemented Interfaces:
CacheSet<T>

public class CacheSetLRU<T>
extends Object
implements CacheSet<T>

Cache set - tracks LRU of objects


Constructor Summary
CacheSetLRU(float loadFactor, int maxSize)
           
CacheSetLRU(int maxSize)
           
 
Method Summary
 void add(T e)
           
 void clear()
           
 boolean contains(T obj)
           
 boolean isEmpty()
           
 void remove(T obj)
           
 long size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheSetLRU

public CacheSetLRU(int maxSize)

CacheSetLRU

public CacheSetLRU(float loadFactor,
                   int maxSize)
Method Detail

add

public void add(T e)
Specified by:
add in interface CacheSet<T>

clear

public void clear()
Specified by:
clear in interface CacheSet<T>

contains

public boolean contains(T obj)
Specified by:
contains in interface CacheSet<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface CacheSet<T>

remove

public void remove(T obj)
Specified by:
remove in interface CacheSet<T>

size

public long size()
Specified by:
size in interface CacheSet<T>


Licenced under the Apache License, Version 2.0