Interface HasName
-
- All Known Subinterfaces:
StreamsExecutionEnvironment<T>
- All Known Implementing Classes:
LocalStatePartitionsInfo
,LocalStreamsExecutionEnvironment
,StreamsExecutionEnvironment.View
public interface HasName
An interface representing a model that has a name.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T extends HasName>
Optional<T>filterByName(Collection<T> collections, String name)
An helper method to filter aCollection
ofHasName
object based on its name.static Set<String>
getIds(Collection<? extends HasName> collections)
An helper method to get string names from a collection ofHasName
objects.String
name()
-
-
-
Method Detail
-
name
String name()
-
filterByName
static <T extends HasName> Optional<T> filterByName(Collection<T> collections, String name)
An helper method to filter aCollection
ofHasName
object based on its name.- Parameters:
collections
- the collection ofHasName
.- Returns:
- a set containing only the string ids.
-
-