Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.joepritzel.feather;

A message used to send to TopicSubscibers.

Parameters:
<T> - The type of message.
Author(s):
Joe Pritzel
public class TopicalMessage<T> {
	private final String path;
	private final T message;

Creates a new topical message.

Parameters:
path - The path to be sent to.
message - The message to be sent.
	public TopicalMessage(String path, T message) {
		this. = path;
		this. = message;
	}

Returns:
The path that the message was sent to.
	public String getPath() {
		return ;
	}

Returns:
THe message that was sent.
	public T getMessage() {
		return ;
	}
New to GrepCode? Check out our FAQ X