Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.jini.core.constraint
Interface RelativeTimeConstraint

All Superinterfaces:
  InvocationConstraint

All Known Implementing Classes:
  ConnectionRelativeTime, ConstraintAlternatives, DelegationRelativeTime

public interface RelativeTimeConstraint
extends InvocationConstraint

Implemented by constraints that are expressed in terms of relative time, to support conversion to absolute time constraints.

Since:
  2.0

Method Summary
`InvocationConstraint` | `makeAbsolute(long baseTime)` Converts this constraint to absolute time.

Method Detail

### makeAbsolute

    public InvocationConstraint makeAbsolute(long baseTime)

  Converts this constraint to absolute time. Takes an absolute time, specified in milliseconds from midnight, January 1, 1970 UTC, and returns a constraint that has the same information content as this constraint except that the relative times have been converted to absolute times by adding the specified absolute time to each relative time in this constraint. If the addition results in underflow or overflow, a time value of `Long.MIN_VALUE` or `Long.MAX_VALUE` is used, respectively. The returned constraint will typically be an instance of a different constraint class than this constraint.

  Parameters:
    `baseTime` - an absolute time, specified in milliseconds from midnight, January 1, 1970 UTC
  Returns:
    a constraint that has the relative times converted to absolute times by adding the specified absolute time to each relative time

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved