当前位置: 首页>>代码示例>>Java>>正文


Java ArrayUtil.containsAllTrueElements方法代码示例

本文整理汇总了Java中org.hsqldb.lib.ArrayUtil.containsAllTrueElements方法的典型用法代码示例。如果您正苦于以下问题:Java ArrayUtil.containsAllTrueElements方法的具体用法?Java ArrayUtil.containsAllTrueElements怎么用?Java ArrayUtil.containsAllTrueElements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hsqldb.lib.ArrayUtil的用法示例。


在下文中一共展示了ArrayUtil.containsAllTrueElements方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getIndexForColumns

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 *  Used for TableFilter to get an index for the columns
 */
Index getIndexForColumns(boolean[] columnCheck) {

    Index indexChoice = null;
    int   colCount    = 0;

    for (int i = 0; i < indexList.length; i++) {
        Index index = indexList[i];
        boolean result = ArrayUtil.containsAllTrueElements(columnCheck,
            index.colCheck);

        if (result && index.getVisibleColumns() > colCount) {
            colCount    = index.getVisibleColumns();
            indexChoice = index;
        }
    }

    return indexChoice;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:22,代码来源:Table.java

示例2: setConditions

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * Chooses certain query conditions and assigns a copy of them to this
 * filter. The original condition is set to Expression.TRUE once assigned.
 *
 * @param condition
 *
 * @throws HsqlException
 */
void setConditions(Expression condition) throws HsqlException {

    setCondition(condition);

    if (filterIndex == null) {
        filterIndex = filterTable.getPrimaryIndex();
    }

    if (filterIndex.getVisibleColumns() == 1 || eStart == null
            || eAnd == null || eStart.exprType != Expression.EQUAL) {
        return;
    }

    boolean[]    check    = filterTable.getNewColumnCheckList();
    Expression[] expr     = new Expression[check.length];
    int          colindex = eStart.getArg().getColumnNr();

    check[colindex] = true;
    expr[colindex]  = eStart.getArg2();

    eAnd.getEquiJoinColumns(this, check, expr);

    if (ArrayUtil.containsAllTrueElements(check, filterIndex.colCheck)) {
        isMultiFindFirst     = true;
        findFirstExpressions = expr;
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:36,代码来源:TableFilter.java

示例3: setConditions

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * Chooses certain query conditions and assigns a copy of them to this
 * filter. The original condition is set to Expression.TRUE once assigned.
 *
 * @param condition
 *
 * @throws HsqlException
 */
void setConditions(Session session,
                   Expression condition) throws HsqlException {

    setCondition(session, condition);

    if (filterIndex == null) {
        filterIndex = filterTable.getPrimaryIndex();
    }

    if (filterIndex.getVisibleColumns() == 1 || eStart == null
            || eAnd == null || eStart.exprType != Expression.EQUAL) {
        return;
    }

    boolean[]    check    = filterTable.getNewColumnCheckList();
    Expression[] expr     = new Expression[check.length];
    int          colindex = eStart.getArg().getColumnNr();

    check[colindex] = true;
    expr[colindex]  = eStart.getArg2();

    eAnd.getEquiJoinColumns(this, check, expr);

    if (ArrayUtil.containsAllTrueElements(check, filterIndex.colCheck)) {
        isMultiFindFirst     = true;
        findFirstExpressions = expr;
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:37,代码来源:TableFilter.java


注:本文中的org.hsqldb.lib.ArrayUtil.containsAllTrueElements方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。