Points.Impl
Constructor and Description |
---|
Impl()
Constructs an instance.
|
Impl(PointBinding[] bindings)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
Optional<Reference<Point>> |
addAlias(String alias,
Point point)
Adds an alias for a point.
|
Optional<Reference<Point>> |
addPoint(Point point)
Adds a point.
|
Map<String,Reference<Point>> |
getNamesMap()
Gets the names map.
|
Optional<Point> |
getPoint(String key)
Gets the point with the specified key.
|
Optional<Point> |
getPointByName(String name)
Gets the point with the specified name.
|
Optional<Point> |
getPointByUUID(UUID uuid)
Gets the point with the specified UUID.
|
Collection<Point> |
getPointsCollection()
Gets a collection of the registered points.
|
Map<UUID,Reference<Point>> |
getUUIDMap()
Gets the UUID map.
|
public Impl()
public Impl(@Nonnull PointBinding[] bindings)
bindings
- The point bindings.@Nonnull public Optional<Reference<Point>> addAlias(@Nonnull String alias, @Nonnull Point point)
alias
- The alias.point
- The point.@Nonnull public Optional<Reference<Point>> addPoint(@Nonnull Point point)
point
- The point.@Nonnull @CheckReturnValue public Map<String,Reference<Point>> getNamesMap()
public Optional<Point> getPoint(String key)
public Optional<Point> getPointByName(String name)
getPointByName
in interface Points
name
- The name.public Optional<Point> getPointByUUID(UUID uuid)
getPointByUUID
in interface Points
uuid
- The UUID.public Collection<Point> getPointsCollection()
getPointsCollection
in interface Points
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.