processQueries(Collection)
is being modified. However, this is highly unlikely,
and wrapping the passed queries using Collections.unmodifiableCollection(Collection)
is a way better approach for intercepting these cases than wrapping the oracle.@Deprecated public class SafeOracle<I,D> extends Object implements MembershipOracle<I,D>
MembershipOracle.DFAMembershipOracle<I>, MembershipOracle.MealyMembershipOracle<I,O>
Constructor and Description |
---|
SafeOracle(MembershipOracle<I,D> nextOracle)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkQuery(Query<I,D> query)
Deprecated.
|
void |
processQueries(Collection<? extends Query<I,D>> queries)
Deprecated.
Processes the specified collection of queries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
answerQuery, answerQuery, asOracle, processQuery
public SafeOracle(MembershipOracle<I,D> nextOracle)
public void processQueries(Collection<? extends Query<I,D>> queries)
MembershipOracle
Query.answer(Object)
method should have
been called with an argument reflecting the SUL response to the respective query.processQueries
in interface MembershipOracle<I,D>
queries
- the queries to processQuery.answer(Object)
Copyright © 2016. All rights reserved.