com.sun.jini.discovery
Class DiscoveryConstraints.MaxValueReducer

java.lang.Object
  extended by com.sun.jini.discovery.DiscoveryConstraints.ConstraintReducer
      extended by com.sun.jini.discovery.DiscoveryConstraints.MaxValueReducer
Direct Known Subclasses:
DiscoveryConstraints.ConnectionAbsoluteTimeReducer, DiscoveryConstraints.MulticastMaxPacketSizeReducer
Enclosing class:
DiscoveryConstraints

private abstract static class DiscoveryConstraints.MaxValueReducer
extends DiscoveryConstraints.ConstraintReducer


Constructor Summary
DiscoveryConstraints.MaxValueReducer(Class targetClass)
           
 
Method Summary
(package private) abstract  InvocationConstraint getConstraintInstance(long value)
           
(package private) abstract  long getValue(InvocationConstraint ic)
           
(package private)  Set reduce0(Set reduced, Set toReduce)
          Returns the reduction (intersection and compaction) of a new set of alternative constraints, all instances of the target class, with a previously reduced set (null if no other constraints have been reduced yet).
 
Methods inherited from class com.sun.jini.discovery.DiscoveryConstraints.ConstraintReducer
reduce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryConstraints.MaxValueReducer

DiscoveryConstraints.MaxValueReducer(Class targetClass)
Method Detail

getValue

abstract long getValue(InvocationConstraint ic)

getConstraintInstance

abstract InvocationConstraint getConstraintInstance(long value)

reduce0

Set reduce0(Set reduced,
            Set toReduce)
Description copied from class: DiscoveryConstraints.ConstraintReducer
Returns the reduction (intersection and compaction) of a new set of alternative constraints, all instances of the target class, with a previously reduced set (null if no other constraints have been reduced yet). Returns an empty set if elements in the sets conflict. This method can be overridden by subclasses for constraints with particular reduction semantics; the default implementation of this method returns the intersection of the two sets.

Overrides:
reduce0 in class DiscoveryConstraints.ConstraintReducer


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.