Package net.sf.freecol.common.networking
Class ChangeSet.MessageChange<T extends Message>
- java.lang.Object
-
- net.sf.freecol.common.networking.ChangeSet.Change<T>
-
- net.sf.freecol.common.networking.ChangeSet.MessageChange<T>
-
- Enclosing class:
- ChangeSet
private static class ChangeSet.MessageChange<T extends Message> extends ChangeSet.Change<T>
Encapsulate a Message.
-
-
Field Summary
Fields Modifier and Type Field Description private T
message
-
Fields inherited from class net.sf.freecol.common.networking.ChangeSet.Change
see
-
-
Constructor Summary
Constructors Constructor Description MessageChange(ChangeSet.See see, T message)
Build a new MessageChange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
toMessage(Player player)
Specialize a Change for a particular player.java.lang.String
toString()
-
Methods inherited from class net.sf.freecol.common.networking.ChangeSet.Change
check, consequence, isNotifiable, matches
-
-
-
-
Constructor Detail
-
MessageChange
public MessageChange(ChangeSet.See see, T message)
Build a new MessageChange.- Parameters:
see
- The visibility of this change.message
- TheMessage
to add.
-
-
Method Detail
-
toMessage
public T toMessage(Player player)
Specialize a Change for a particular player.- Specified by:
toMessage
in classChangeSet.Change<T extends Message>
- Parameters:
player
- ThePlayer
to update.- Returns:
- A specialized
Message
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-