com.gridsystems.nextgrid.api.builder
Class Cache.CacheEntry<T>

java.lang.Object
  extended by com.gridsystems.nextgrid.api.builder.Cache.CacheEntry<T>
Enclosing class:
Cache<T>

public static class Cache.CacheEntry<T>
extends java.lang.Object

Equivalent to Map.Entry, but this one can be instantiated.


Constructor Summary
Cache.CacheEntry(java.net.URI key, T value)
          Creates a new instance.
 
Method Summary
 java.net.URI getKey()
          Gets the key.
 T getValue()
          Gets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cache.CacheEntry

public Cache.CacheEntry(java.net.URI key,
                        T value)
Creates a new instance.

Parameters:
key - Key URI
value - Mapped value
Method Detail

getKey

public java.net.URI getKey()
Gets the key.

Returns:
The key

getValue

public T getValue()
Gets the value.

Returns:
The value


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.