Package org.tensorics.core.tensor
Interface VerificationCallback<S>
-
- Type Parameters:
S
- the type of the scalar to check
public interface VerificationCallback<S>
A callback that can be passed to a builder so that it can check any new scalar added if it is conform to certain criteria.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
verify(S scalar)
This method might be overridden by a subclass, to verify the consistency of a scalar.
-
-
-
Method Detail
-
verify
void verify(S scalar)
This method might be overridden by a subclass, to verify the consistency of a scalar. It may throw, if the entry cannot be put to the tensor.- Parameters:
scalar
- the scalar to verify- Throws:
java.lang.IllegalArgumentException
- if the scalar is not allowed to be put into the tensor under construction.
-
-