public static interface

VerifiedDeque.FailureHandler

com.pnfsoftware.jeb.util.collect.VerifiedDeque.FailureHandler<E>

Class Overview

Failure handler for VerifiedDeque.

Summary

Public Methods
abstract int inBlacklist(E e)
abstract int notInWhitelist(E e)

Public Methods

public abstract 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)

public abstract 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)