# Class: com.pnfsoftware.jeb.util.collect.VerifiedDeque

[Deque](Deque) wrapper providing verification facility on [push](Deque#push(Object)).

## Method: push
- parameter: `e`, type: `E`
- return type: `boolean`

Description: Validate and eventually push/bail/raise an element to the wrapped deque.
parameter: e: 
return: true on push, false on aborted push \(the method could also raise; see         [FailureHandler](FailureHandler)\)
throws: refer to [FailureHandler](FailureHandler)

## Static Method: wrap
- parameter: `deque`, type: `java.util.Deque<E>`
- parameter: `whitelist`, type: `java.util.Collection<E>`
- parameter: `blacklist`, type: `java.util.Collection<E>`
- parameter: `failureHandler`, type: `com.pnfsoftware.jeb.util.collect.VerifiedDeque.FailureHandler<E>`
- return type: `com.pnfsoftware.jeb.util.collect.VerifiedDeque<E>`

Description: Wrap a double\-ended queue to support validation on [push](Deque#push(Object)).
parameter: deque: a queue to be wrapped
parameter: whitelist: optional white\-list; if null, all elements are deemed good by default
parameter: blacklist: optional black\-list; if null, no element is deemed bad by default
parameter: failureHandler: optional handler; if not provided, illegal pushes will raise

