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.cfcore.v2_1.CFGenKbRam.CFGenKbRamServiceTypeTable.java

public void deleteServiceTypeByUDescrIdx(CFGenKbAuthorization Authorization,
        CFGenKbServiceTypeByUDescrIdxKey argKey) {
    CFGenKbServiceTypeBuff cur;/* w w w.  j a  va 2  s . c om*/
    LinkedList<CFGenKbServiceTypeBuff> matchSet = new LinkedList<CFGenKbServiceTypeBuff>();
    Iterator<CFGenKbServiceTypeBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFGenKbServiceTypeBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteServiceType(Authorization, cur);
    }
}

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

public void deleteAuditActionByUDescrIdx(CFAccAuthorization Authorization,
        CFAccAuditActionByUDescrIdxKey argKey) {
    CFAccAuditActionBuff cur;/* w  w  w. j av a2  s . c om*/
    LinkedList<CFAccAuditActionBuff> matchSet = new LinkedList<CFAccAuditActionBuff>();
    Iterator<CFAccAuditActionBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccAuditActionBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteAuditAction(Authorization, cur);
    }
}

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

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

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

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

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

public void deleteServiceTypeByIdIdx(CFAstAuthorization Authorization, CFAstServiceTypePKey argKey) {
    CFAstServiceTypeBuff cur;/* w  w  w  .jav a2  s . c om*/
    LinkedList<CFAstServiceTypeBuff> matchSet = new LinkedList<CFAstServiceTypeBuff>();
    Iterator<CFAstServiceTypeBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstServiceTypeBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteServiceType(Authorization, cur);
    }
}

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

public void deleteServiceTypeByUDescrIdx(CFAccAuthorization Authorization,
        CFAccServiceTypeByUDescrIdxKey argKey) {
    CFAccServiceTypeBuff cur;/*  www .  j a v  a2 s  .c om*/
    LinkedList<CFAccServiceTypeBuff> matchSet = new LinkedList<CFAccServiceTypeBuff>();
    Iterator<CFAccServiceTypeBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAccServiceTypeBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteServiceType(Authorization, cur);
    }
}

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

public void deleteServiceTypeByUDescrIdx(CFAstAuthorization Authorization,
        CFAstServiceTypeByUDescrIdxKey argKey) {
    CFAstServiceTypeBuff cur;/*from  w w  w . j ava  2s . c  o  m*/
    LinkedList<CFAstServiceTypeBuff> matchSet = new LinkedList<CFAstServiceTypeBuff>();
    Iterator<CFAstServiceTypeBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFAstServiceTypeBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteServiceType(Authorization, cur);
    }
}

From source file:m.c.m.proxyma.context.ProxymaContext.java

/**
 * Updates Context Destination Indexes.<br/>
 * This method is invoked from a proxy folder that has changed its
 * destination in order to keep aligned the internal index of the
 * registered proxy folders./*from  w  w w .ja  v a  2 s .com*/
 *
 * @param theFolder the folder that has jus been updated
 */
protected void updateFolderDestinationIndex(URL oldDestination, ProxyFolderBean theFolder) {
    //Remove the proxy-folder from the second indexing map.
    String destinationHost = URLUtils.getDestinationHost(oldDestination);
    LinkedList<ProxyFolderBean> currentSlot = null;
    currentSlot = proxyFoldersByDestinationHost.get(destinationHost);
    if (currentSlot.size() == 1) {
        currentSlot.remove(theFolder);
        proxyFoldersByDestinationHost.remove(destinationHost);
    } else {
        Iterator<ProxyFolderBean> iterator = currentSlot.iterator();
        while (iterator.hasNext()) {
            ProxyFolderBean curFolder = iterator.next();
            if (curFolder == theFolder)
                iterator.remove();
        }
    }

    //Re-Add the proxy folder with the new destination host
    destinationHost = URLUtils.getDestinationHost(theFolder.getDestinationAsURL());
    currentSlot = null;
    if (proxyFoldersByDestinationHost.containsKey(destinationHost)) {
        currentSlot = proxyFoldersByDestinationHost.get(destinationHost);
        currentSlot.add(theFolder);
    } else {
        currentSlot = new LinkedList();
        currentSlot.add(theFolder);
        proxyFoldersByDestinationHost.put(destinationHost, currentSlot);
    }
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamMimeTypeTable.java

public void deleteMimeTypeByIdIdx(CFSecurityAuthorization Authorization, CFInternetMimeTypePKey argKey) {
    boolean anyNotNull = false;
    anyNotNull = true;//w  w  w  . jav a  2  s  . c om
    if (!anyNotNull) {
        return;
    }
    CFInternetMimeTypeBuff cur;
    LinkedList<CFInternetMimeTypeBuff> matchSet = new LinkedList<CFInternetMimeTypeBuff>();
    Iterator<CFInternetMimeTypeBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFInternetMimeTypeBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        cur = schema.getTableMimeType().readDerivedByIdIdx(Authorization, cur.getRequiredMimeTypeId());
        deleteMimeType(Authorization, cur);
    }
}

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

public void deleteAuditActionByIdIdx(CFSecurityAuthorization Authorization, CFSecurityAuditActionPKey argKey) {
    CFSecurityAuditActionBuff cur;//w  w w  .j  a va 2 s . co m
    LinkedList<CFSecurityAuditActionBuff> matchSet = new LinkedList<CFSecurityAuditActionBuff>();
    Iterator<CFSecurityAuditActionBuff> values = dictByPKey.values().iterator();
    while (values.hasNext()) {
        cur = values.next();
        if (argKey.equals(cur)) {
            matchSet.add(cur);
        }
    }
    Iterator<CFSecurityAuditActionBuff> iterMatch = matchSet.iterator();
    while (iterMatch.hasNext()) {
        cur = iterMatch.next();
        deleteAuditAction(Authorization, cur);
    }
}