Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.collection
Class ExpireMap.Value

    java.lang.Object
      org.hyperic.util.collection.ExpireMap.Value

Enclosing class:
  ExpireMap

    public class ExpireMap.Value

extends java.lang.Object

This is the class used as value to the ExpireMap class

Constructor Summary
`ExpireMap.Value(java.lang.Object value)` No expiration constructor
`ExpireMap.Value(java.lang.Object value, long expiration)` Constructor with expiration (offset from current time)

Method Summary
`long` | `getExpiration()`
`java.lang.Object` | `getValue()`
`boolean` | `hasExpired()` Check if key has expired
`void` | `setExpiration(long l)`
`void` | `setValue(java.lang.Object object)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ExpireMap.Value

    public ExpireMap.Value(java.lang.Object value)

  No expiration constructor

  Parameters:
    `value` - the actual value

### ExpireMap.Value

    public ExpireMap.Value(java.lang.Object value,
                           long expiration)

  Constructor with expiration (offset from current time)

  Parameters:
    `value` - the actual value
    `expiration` - the offset from current time

Method Detail

### hasExpired

    public boolean hasExpired()

  Check if key has expired

  Returns:
    true if key has expired

### getExpiration

    public long getExpiration()

  Returns:
    the expiration time

### setExpiration

    public void setExpiration(long l)

  Parameters:
    `l` - the new expiration time

### getValue

    public java.lang.Object getValue()

  Returns:
    the value object

### setValue

    public void setValue(java.lang.Object object)

  Parameters:
    `object` - the new value object

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.