Code example for Stack

Methods: push

0
    private StringBuilder mWhereSb = new StringBuilder();
    private List<String> mWhereParamList = new ArrayList<String>();
    private boolean mIsWhereFirstElement = true;
 
    // True = AND, false = OR 
    private Stack<Boolean> mOperandStack = new Stack<Boolean>();
 
    private StringBuilder mOrderSb = new StringBuilder();
    private boolean mIsOrderFirstElement = true;
 
    public ProviderCriteria() { 
        mOperandStack.push(true);
    } 
 
    public ProviderCriteria(final ColumnMetadata metadata, final int value) {
        this(); 
        addEq(metadata, value);
    } 
 
    public ProviderCriteria(final ColumnMetadata metadata, final long value) {
        this();