public class DummySource<T> extends AbstractDataSource<T>
activeProperty, connectedProperty, dataProperty, nameProperty
Constructor and Description |
---|
DummySource(DataType<T> dataType,
T value)
Create a new static, unchanging source for the given data type and value.
|
Modifier and Type | Method and Description |
---|---|
static <T> DummySource<T> |
forType(DataType<T> type) |
static java.util.Optional<DataSource<?>> |
forTypes(DataType... types) |
static java.util.Optional<DataSource<?>> |
forTypes(java.util.Set<DataType> types)
Return an example source value for the given data types.
|
SourceType |
getType()
Gets the type of this source.
|
activeProperty, addClient, connect, connectedProperty, dataProperty, disconnect, getDataType, hasClients, isConnected, nameProperty, removeClient, setActive, setConnected, setName, toString
public SourceType getType()
DataSource
public static <T> DummySource<T> forType(DataType<T> type)
public static java.util.Optional<DataSource<?>> forTypes(java.util.Set<DataType> types)
public static java.util.Optional<DataSource<?>> forTypes(DataType... types)