Example usage for java.util LinkedList iterator

List of usage examples for java.util LinkedList iterator

Introduction

In this page you can find the example usage for java.util LinkedList iterator.

Prototype

Iterator<E> iterator();

Source Link

Document

Returns an iterator over the elements in this list in proper sequence.

Usage

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetRam.CFInternetRamSecAppTable.java

public void deleteSecAppByUJEEMountIdx(CFInternetAuthorization Authorization,
        CFInternetSecAppByUJEEMountIdxKey argKey) {
    CFInternetSecAppBuff cur;//w  ww .j a  v  a  2  s .  c  om
    LinkedList<CFInternetSecAppBuff> matchSet = new LinkedList<CFInternetSecAppBuff>();
    Iterator<CFInternetSecAppBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFInternetSecAppBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecApp(Authorization, cur);
    }
}

From source file:com.rapidminer.operator.preprocessing.discretization.MinimalEntropyDiscretization.java

private ArrayList<Double> getSplitpoints(LinkedList<double[]> startPartition, Attribute label) {
    LinkedList<LinkedList<double[]>> border = new LinkedList<LinkedList<double[]>>();
    ArrayList<Double> result = new ArrayList<Double>();
    border.addLast(startPartition);/*from w w  w  .  j  a va2  s  . co  m*/
    while (!border.isEmpty()) {
        LinkedList<double[]> currentPartition = border.removeFirst();
        Double splitpoint = this.getMinEntropySplitpoint(currentPartition, label);
        if (splitpoint != null) {
            result.add(splitpoint);
            double splitValue = splitpoint.doubleValue();
            LinkedList<double[]> newPartition1 = new LinkedList<double[]>();
            LinkedList<double[]> newPartition2 = new LinkedList<double[]>();
            Iterator<double[]> it = currentPartition.iterator();
            while (it.hasNext()) { // Create new partitions.
                double[] attributeLabelPair = it.next();
                if (attributeLabelPair[0] <= splitValue) {
                    newPartition1.addLast(attributeLabelPair);
                } else {
                    newPartition2.addLast(attributeLabelPair);
                }
            }
            border.addLast(newPartition1);
            border.addLast(newPartition2);
        }
    }
    return result; // Empty ArrayList if no Splitpoint could be found.

}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamSecAppTable.java

public void deleteSecAppByIdIdx(CFSecurityAuthorization Authorization, CFSecuritySecAppPKey argKey) {
    CFSecuritySecAppBuff cur;//from   ww  w  .  jav a 2s.c o m
    LinkedList<CFSecuritySecAppBuff> matchSet = new LinkedList<CFSecuritySecAppBuff>();
    Iterator<CFSecuritySecAppBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFSecuritySecAppBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecApp(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecGroupTable.java

public void deleteSecGroupByIdIdx(CFAccAuthorization Authorization, CFAccSecGroupPKey argKey) {
    CFAccSecGroupBuff cur;/*ww  w  .  j a v a  2  s  .  c  o  m*/
    LinkedList<CFAccSecGroupBuff> matchSet = new LinkedList<CFAccSecGroupBuff>();
    Iterator<CFAccSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecGroup(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecGroupTable.java

public void deleteSecGroupByClusterIdx(CFAccAuthorization Authorization, CFAccSecGroupByClusterIdxKey argKey) {
    CFAccSecGroupBuff cur;/*from   www.  j  a v  a  2 s.c o m*/
    LinkedList<CFAccSecGroupBuff> matchSet = new LinkedList<CFAccSecGroupBuff>();
    Iterator<CFAccSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecGroup(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecGroupTable.java

public void deleteSecGroupByUNameIdx(CFAccAuthorization Authorization, CFAccSecGroupByUNameIdxKey argKey) {
    CFAccSecGroupBuff cur;/* ww w. jav  a2  s. c o m*/
    LinkedList<CFAccSecGroupBuff> matchSet = new LinkedList<CFAccSecGroupBuff>();
    Iterator<CFAccSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecGroup(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamTSecGroupTable.java

public void deleteTSecGroupByIdIdx(CFAccAuthorization Authorization, CFAccTSecGroupPKey argKey) {
    CFAccTSecGroupBuff cur;/*w w w. ja v a2s  .  c o m*/
    LinkedList<CFAccTSecGroupBuff> matchSet = new LinkedList<CFAccTSecGroupBuff>();
    Iterator<CFAccTSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccTSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTSecGroup(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamTSecGroupTable.java

public void deleteTSecGroupByTenantIdx(CFAccAuthorization Authorization, CFAccTSecGroupByTenantIdxKey argKey) {
    CFAccTSecGroupBuff cur;// w  ww. j  a v a2 s  .  c o m
    LinkedList<CFAccTSecGroupBuff> matchSet = new LinkedList<CFAccTSecGroupBuff>();
    Iterator<CFAccTSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccTSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTSecGroup(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamTSecGroupTable.java

public void deleteTSecGroupByUNameIdx(CFAccAuthorization Authorization, CFAccTSecGroupByUNameIdxKey argKey) {
    CFAccTSecGroupBuff cur;/*from w ww .  j a v a  2  s.  c om*/
    LinkedList<CFAccTSecGroupBuff> matchSet = new LinkedList<CFAccTSecGroupBuff>();
    Iterator<CFAccTSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccTSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTSecGroup(Authorization, cur);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamSecGroupTable.java

public void deleteSecGroupByIdIdx(CFAstAuthorization Authorization, CFAstSecGroupPKey argKey) {
    CFAstSecGroupBuff cur;/*from   w  ww  . ja va 2 s  .  c  o m*/
    LinkedList<CFAstSecGroupBuff> matchSet = new LinkedList<CFAstSecGroupBuff>();
    Iterator<CFAstSecGroupBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSecGroupBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSecGroup(Authorization, cur);
    }
}