Interface VerifiedDeque.FailureHandler<E>

Type Parameters:
E -
Enclosing class:
VerifiedDeque<E>

public static interface VerifiedDeque.FailureHandler<E>
Failure handler for VerifiedDeque.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
  • Method Details

    • notInWhitelist

      int notInWhitelist(E e)
      Parameters:
      e - the element to be added is not in the provided white-list
      Returns:
      0=do not insert; 1=insert anyway; -1= failure (throw)
    • inBlacklist

      int inBlacklist(E e)
      Parameters:
      e - the element to be added is in the provided black-list
      Returns:
      0=do not insert; 1=insert anyway; -1= failure (throw)