Package java.util

Examples of java.util.Vector.indexOf()


        Vector aVector = new Vector(aList);
        for (int n = 0; n < _sServiceNames.length; n++){
            String[] sDelServiceNames = getMandatoryServiceNames(_sServiceNames[n]);
            for (int m = 0; m < sDelServiceNames.length; m++){
                if (aVector.contains(sDelServiceNames[m])){
                    int nIndex = aVector.indexOf(sDelServiceNames[m]);
                    aVector.remove(nIndex);
                }
            }
        }
        String[] sRetArray = new String[aVector.size()];
View Full Code Here


                    photo = PhotoInfo.retrievePhotoInfo(oldInstance.getPhotoUid());
                } catch (PhotoNotFoundException ex) {
                    ex.printStackTrace();
                }
                Vector instances = photo.getInstances();
                int instNum = instances.indexOf( oldInstance );
                if ( instNum >= 0 ) {
                    photo.removeInstance( instNum );
                }
            }
        }
View Full Code Here

  String missingAttribute = null;

  for (int i = 0; i < validAttributes.length; i++) {
      int attrPos;   
      if (validAttributes[i].mandatory) {
                attrPos = temp.indexOf(validAttributes[i].name);
    if (attrPos != -1) {
        temp.remove(attrPos);
        valid = true;
    } else {
        valid = false;
View Full Code Here

      Collections.sort(allLabels);
    m_SortedIndices = new int[att.numValues()];
    enm             = att.enumerateValues();
    i               = 0;
    while (enm.hasMoreElements()) {
      m_SortedIndices[i] = allLabels.indexOf(enm.nextElement());
      i++;
    }

    // generate new header
    values = new FastVector();
View Full Code Here

    }

    public void delete(String calendarItemId, Date alarmTime) {
        Vector alarms = alarmMap.getValues(calendarItemId);
        if (alarms != null) {
            int alarmIndex = alarms.indexOf(new AlarmTask(calendarItemId, alarmTime, dataType));
            if (alarmIndex != -1) {
                AlarmTask alarm = (AlarmTask)alarms.elementAt(alarmIndex);
                alarm.cancel();
            }
        }
View Full Code Here

    String missingAttribute = null;

    for (int i = 0; i < validAttributes.length; i++) {
        int attrPos;   
        if (validAttributes[i].mandatory) {
                attrPos = temp.indexOf(validAttributes[i].name);
        if (attrPos != -1) {
            temp.remove(attrPos);
            valid = true;
        } else {
            valid = false;
View Full Code Here

            row.setRowSpanMgr(rowSpanMgr);
            row.setColumns(columns);
            row.doSetup(areaContainer);
            if (row.getKeepWithPrevious().getType()
                    != KeepValue.KEEP_WITH_AUTO && lastRow != null
                                                && keepWith.indexOf(lastRow)
                                                   == -1) {
                keepWith.addElement(lastRow);
            } else {
                if (endKeepGroup && keepWith.size() > 0) {
                    keepWith = new Vector();
View Full Code Here

      Collections.sort(allLabels);
    m_SortedIndices = new int[att.numValues()];
    enm             = att.enumerateValues();
    i               = 0;
    while (enm.hasMoreElements()) {
      m_SortedIndices[i] = allLabels.indexOf(enm.nextElement());
      i++;
    }
   
    // generate new header
    values = new FastVector();
View Full Code Here

                    // Get the next key.
                    Object key = keyIterator.next();

                    // Skip this element if the key is suppressed.
                    if (suppressedKeys != null &&
                        suppressedKeys.indexOf(key) != -1) {
                        continue;
                    }

                    // Get the field of the key.
                    Object keyElement = SerializerFactory.getState(key, null);
View Full Code Here

                    // Get the next key.
                    Object key = keyIterator.next();

                    // Skip this element if the key is suppressed.
                    if(suppressedKeys != null &&
                       suppressedKeys.indexOf(key) != -1) {
                        continue;
                    }

                    // Get the field of the key.
                    HintElement keyElement = (HintElement)hintTable.get(key);
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.