mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +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.
|
||||
*
|
||||
* <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 {}
|
||||
|
||||
Reference in New Issue
Block a user