public static class EntityI.EntityMatcher extends java.lang.Object implements GraphNodeMatcherI
| Constructor and Description |
|---|
EntityMatcher(EntityI wantedEntity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fits(OnlyToDirectedGraphNodeI node)
Checks if the given node matches the criteria defined by this matcher.
|
public EntityMatcher(EntityI wantedEntity)
public boolean fits(OnlyToDirectedGraphNodeI node) throws java.lang.ClassCastException
GraphNodeMatcherIfits in interface GraphNodeMatcherInode - The graph node (of type N) to check against the matcher's criteria.
Implementations should define behavior for null inputs,
though typically callers should avoid passing null.true if the given node matches the criteria of this matcher;
false otherwise.java.lang.ClassCastExceptionCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.