mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[wpiutil] Update StructSerializable contract (NFC) (#7441)
Matches ProtobufSerializable. This is necessary for generic types.
This commit is contained in:
@@ -10,6 +10,7 @@ import edu.wpi.first.util.WPISerializable;
|
|||||||
* Marker interface to indicate a class is serializable using Struct serialization.
|
* Marker interface to indicate a class is serializable using Struct serialization.
|
||||||
*
|
*
|
||||||
* <p>While this cannot be enforced by the interface, any class implementing this interface should
|
* <p>While this cannot be enforced by the interface, any class implementing this interface should
|
||||||
* provide a public final static `struct` member variable.
|
* provide a public final static `struct` member variable, or a static final `getStruct()` method if
|
||||||
|
* the class is generic.
|
||||||
*/
|
*/
|
||||||
public interface StructSerializable extends WPISerializable {}
|
public interface StructSerializable extends WPISerializable {}
|
||||||
|
|||||||
Reference in New Issue
Block a user