Class TrustChainSet
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<TrustChain>
,Collection<TrustChain>
,Set<TrustChain>
Trust chain set with methods for
getting the shortest
chain
and filtering according to path length and entity ID
constraints
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(TrustChainConstraints constraints) Returns a filtered trust chain set according to constraints.Returns the shortest trust chain in this set.Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
TrustChainSet
public TrustChainSet()
-
-
Method Details
-
getShortest
Returns the shortest trust chain in this set.- Returns:
- The (first) shortest chain,
null
for an empty set.
-
filter
Returns a filtered trust chain set according to constraints.- Parameters:
constraints
- The constraints. Must not benull
.- Returns:
- The filtered trust chain set.
-