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.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamClusterTable.java

public void deleteClusterByUDescrIdx(CFSecurityAuthorization Authorization,
        CFSecurityClusterByUDescrIdxKey argKey) {
    CFSecurityClusterBuff cur;/*from www .j a va 2  s  .c o  m*/
    LinkedList<CFSecurityClusterBuff> matchSet = new LinkedList<CFSecurityClusterBuff>();
    Iterator<CFSecurityClusterBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFSecurityClusterBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteCluster(Authorization, cur);
    }
}

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

public void deleteTenantByIdIdx(CFAstAuthorization Authorization, CFAstTenantPKey argKey) {
    CFAstTenantBuff cur;//from   w ww  . j  a  va2s.  c  o m
    LinkedList<CFAstTenantBuff> matchSet = new LinkedList<CFAstTenantBuff>();
    Iterator<CFAstTenantBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstTenantBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTenant(Authorization, cur);
    }
}

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

public void deleteTenantByClusterIdx(CFAstAuthorization Authorization, CFAstTenantByClusterIdxKey argKey) {
    CFAstTenantBuff cur;/* w w w. jav a 2 s .  c  o  m*/
    LinkedList<CFAstTenantBuff> matchSet = new LinkedList<CFAstTenantBuff>();
    Iterator<CFAstTenantBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstTenantBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTenant(Authorization, cur);
    }
}

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

public void deleteTenantByUNameIdx(CFAstAuthorization Authorization, CFAstTenantByUNameIdxKey argKey) {
    CFAstTenantBuff cur;/*  ww  w  .  j a va  2s. c  om*/
    LinkedList<CFAstTenantBuff> matchSet = new LinkedList<CFAstTenantBuff>();
    Iterator<CFAstTenantBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstTenantBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTenant(Authorization, cur);
    }
}

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

public void deleteSipConfByIdIdx(CFAstAuthorization Authorization, CFAstConfigurationFilePKey argKey) {
    CFAstSipConfBuff cur;//from   w w  w . j  a  v a  2s.  c om
    LinkedList<CFAstSipConfBuff> matchSet = new LinkedList<CFAstSipConfBuff>();
    Iterator<CFAstSipConfBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSipConfBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSipConf(Authorization, cur);
    }
}

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

public void deleteSipConfBySipClusterIdx(CFAstAuthorization Authorization,
        CFAstSipConfBySipClusterIdxKey argKey) {
    CFAstSipConfBuff cur;//from   w w w. j  a  v a2 s  .com
    LinkedList<CFAstSipConfBuff> matchSet = new LinkedList<CFAstSipConfBuff>();
    Iterator<CFAstSipConfBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSipConfBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSipConf(Authorization, cur);
    }
}

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

public void deleteSipConfByClusterIdx(CFAstAuthorization Authorization,
        CFAstConfigurationFileByClusterIdxKey argKey) {
    CFAstSipConfBuff cur;//from ww  w .  j  a v  a  2 s  . c om
    LinkedList<CFAstSipConfBuff> matchSet = new LinkedList<CFAstSipConfBuff>();
    Iterator<CFAstSipConfBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSipConfBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSipConf(Authorization, cur);
    }
}

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

public void deleteSipConfByHostIdx(CFAstAuthorization Authorization,
        CFAstConfigurationFileByHostIdxKey argKey) {
    CFAstSipConfBuff cur;//from ww  w  . j a  v  a2 s  . co m
    LinkedList<CFAstSipConfBuff> matchSet = new LinkedList<CFAstSipConfBuff>();
    Iterator<CFAstSipConfBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSipConfBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSipConf(Authorization, cur);
    }
}

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

public void deleteSipConfByUNameIdx(CFAstAuthorization Authorization,
        CFAstConfigurationFileByUNameIdxKey argKey) {
    CFAstSipConfBuff cur;/*  ww w.  j a  v  a  2s  .co m*/
    LinkedList<CFAstSipConfBuff> matchSet = new LinkedList<CFAstSipConfBuff>();
    Iterator<CFAstSipConfBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstSipConfBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteSipConf(Authorization, cur);
    }
}

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

public void deleteTenantByIdIdx(CFSecurityAuthorization Authorization, CFSecurityTenantPKey argKey) {
    CFSecurityTenantBuff cur;// w  w w.  j ava 2 s.c o  m
    LinkedList<CFSecurityTenantBuff> matchSet = new LinkedList<CFSecurityTenantBuff>();
    Iterator<CFSecurityTenantBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFSecurityTenantBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteTenant(Authorization, cur);
    }
}