Package edu.wpi.grip.core.sockets
Class SocketHint.IdentiferOverridingSocketHintDecorator<T>
- java.lang.Object
-
- edu.wpi.grip.core.sockets.SocketHint.SocketHintDecorator<T>
-
- edu.wpi.grip.core.sockets.SocketHint.IdentiferOverridingSocketHintDecorator<T>
-
- Type Parameters:
T
- The type of the SocketHint
- All Implemented Interfaces:
SocketHint<T>
- Enclosing interface:
- SocketHint<T>
public static final class SocketHint.IdentiferOverridingSocketHintDecorator<T> extends SocketHint.SocketHintDecorator<T>
A SocketHintDecorator that easily redecorates thegetIdentifier()
method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.wpi.grip.core.sockets.SocketHint
SocketHint.BasicSocketHint<T>, SocketHint.Builder<T>, SocketHint.IdentiferOverridingSocketHintDecorator<T>, SocketHint.SocketHintDecorator<T>, SocketHint.View
-
-
Constructor Summary
Constructors Constructor Description IdentiferOverridingSocketHintDecorator(SocketHint<T> decorated, java.lang.String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIdentifier()
The name for this socket.java.lang.String
toString()
-
Methods inherited from class edu.wpi.grip.core.sockets.SocketHint.SocketHintDecorator
createInitialValue, getDecorated, getDomain, getType, getTypeLabel, getView, isCompatibleWith
-
-
-
-
Constructor Detail
-
IdentiferOverridingSocketHintDecorator
public IdentiferOverridingSocketHintDecorator(SocketHint<T> decorated, java.lang.String identifier)
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:SocketHint
The name for this socket.- Specified by:
getIdentifier
in interfaceSocketHint<T>
- Overrides:
getIdentifier
in classSocketHint.SocketHintDecorator<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-