RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
ProtobufPublisher.java
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5package org.wpilib.networktables;
6
7import java.util.function.Consumer;
8
14public interface ProtobufPublisher<T> extends Publisher, Consumer<T> {
20 @Override
22
28 default void set(T value) {
29 set(value, 0);
30 }
31
38 void set(T value, long time);
39
46 void setDefault(T value);
47
48 @Override
49 default void accept(T value) {
50 set(value);
51 }
52}