Data

public class Data implements Comparable<Data>

A zenoh data returned by a Workspace.get(Selector) query. The Data objects are comparable according to their Timestamp. Note that zenoh makes sure that each published path/value has a unique timestamp accross the system.

Constructors

Data

protected Data(Path path, Value value, Timestamp timestamp)

Methods

compareTo

public int compareTo(Data o)

equals

public boolean equals(Object obj)

getPath

public Path getPath()

Returns the Path of the data.

Returns:the path of the data.

getTimestamp

public Timestamp getTimestamp()

Returns the Timestamp of the data.

Returns:the timestamp of the data.

getValue

public Value getValue()

Returns the Value of the data.

Returns:the value of the data.

hashCode

public int hashCode()