Package java.util

Examples of java.util.List.indexOf()


       
        if(classes.size()!=3){
            throw new RuntimeException();
        }
       
        index = classes.indexOf(objectA);
       
        if(index == -1){
            throw new RuntimeException();
        }
       
View Full Code Here


       
        if(classes.size()!=3){
            throw new RuntimeException();
        }
       
        index = classes.indexOf(objectB);
       
        if(index == -1){
            throw new RuntimeException();
        }
       
View Full Code Here

       
        if(classes.size()!=2){
            throw new RuntimeException();
        }
       
        index = classes.indexOf(objectA);
       
        if(index == -1){
            throw new RuntimeException();
        }
        obj = classes.get(index);
View Full Code Here

       
        if(classes.size()!=4){
            throw new RuntimeException();
        }
       
        index = classes.indexOf(object_Enum);
       
        if(index == -1){
            throw new RuntimeException();
        }
        obj = classes.get(index);
View Full Code Here

  void postAddChildEvent(ASTNode node, ASTNode child,  StructuralPropertyDescriptor property) {
    if(property.isChildListProperty()) {

      ListRewriteEvent event = this.getListEvent(node, property);
      List list = (List)node.getStructuralProperty(property);
      int i = list.indexOf(child);
      int s = list.size();
      int index;
      if(i + 1 < s) {
        ASTNode nextNode = (ASTNode)list.get(i + 1);
        index = event.getIndex(nextNode, ListRewriteEvent.NEW);
View Full Code Here

        List list = sessionContainer.getAllObjects();
        if(list.size()!=totalWritten){
            throw new RuntimeException();
        }
       
        int index = list.indexOf(object);
       
        if(index == -1){
            throw new RuntimeException();
        }
       
View Full Code Here

        list = sessionContainer.getAllObjects();
        if(list.size()!=totalWritten){
            throw new RuntimeException();
        }
       
        index = list.indexOf(object);
       
        if(index == -1){
            throw new RuntimeException();
        }
       
View Full Code Here

      String widthStr = (String) tableColumnProperties.getAttribute("column-width");
      widthStr = widthStr.substring(0, widthStr.indexOf(getUnitsOfMeasure(widthStr)));
      addColumnWidthToRowBoundaryMarker(Float.parseFloat(widthStr));
      ColumnBoundary currentRowBoundary = new ColumnBoundary(getCurrentRowBoundaryMarker());
      final List columnBoundaryList = getColumnBoundaryList();
      final int idx = columnBoundaryList.indexOf(currentRowBoundary);
      if (idx == -1)
      {
        columnBoundaryList.add(currentRowBoundary);
      }
      else
View Full Code Here

        // role does not vary for Mojos.
        List mojos = getComponents();

        if ( mojos != null && mojos.contains( mojoDescriptor ) )
        {
            int indexOf = mojos.indexOf( mojoDescriptor );

            existing = (MojoDescriptor) mojos.get( indexOf );
        }

        if ( existing != null )
View Full Code Here

            HtmlDataTable htmlDataTable = (HtmlDataTable) uiData;
            List tableChildren = htmlDataTable.getChildren();

            int first = htmlDataTable.getFirst();
            int rowInfoIndex = htmlDataTable.getRowIndex() - first;
            int columnInfoIndex = tableChildren.indexOf(component);

            RowInfo rowInfo = (RowInfo) htmlDataTable.getTableContext().getRowInfos().get(rowInfoIndex);
            ColumnInfo columnInfo = (ColumnInfo) rowInfo.getColumnInfos().get(columnInfoIndex);

            if (!columnInfo.isRendered()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.