ref_send API 2.17
defensive programming in Java

org.ref_send.promise
Interface Receiver<T>

Type Parameters:
T - value type
All Known Subinterfaces:
Resolver<T>
All Known Implementing Classes:
Verbose

public interface Receiver<T>

A notification receiver.

This interface should be reused in any "fire-and-forget"-like pattern where the caller is simply sending a notification to the callee. For example, this interface should be used when implementing the Observer pattern.


Method Summary
 void apply(T value)
          Receives a notification.
 

Method Detail

apply

void apply(T value)
Receives a notification.

Parameters:
value - any additional details about the notification

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.