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.StringgetIdentifier()The name for this socket.java.lang.StringtoString()-
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:SocketHintThe name for this socket.- Specified by:
getIdentifierin interfaceSocketHint<T>- Overrides:
getIdentifierin classSocketHint.SocketHintDecorator<T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-