Examples of indexOf()


Examples of com.esotericsoftware.kryo.util.IntArray.indexOf()

    List<Field> validFields = buildValidFields(false, allFields, context, useAsm);
    // Build a list of valid transient fields
    List<Field> validTransientFields = buildValidFields(true, allFields, context, useAsm);

    // Use ReflectASM for any public fields.
    if (useAsmEnabled && !Util.isAndroid && Modifier.isPublic(type.getModifiers()) && useAsm.indexOf(1) != -1) {
      try {
        access = FieldAccess.get(type);
      } catch (RuntimeException ignored) {
      }
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Container.indexOf()

      }
    }

    if (p instanceof Container) {
      Container con = (Container) p;
      int index = con.indexOf((Component) c) + 1;
      if (index == con.getItemCount()) {
        index = 0;
      }
      focusWidget(con.getItem(index));
    } else if (p instanceof ComplexPanel) {
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.ContentPanel.indexOf()

    if (component instanceof ContentPanel) {
      focusNextWidget(component);
    } else {
      ContentPanel panel = (ContentPanel) component.getParent();

      if (!pe.isShiftKey() && panel.indexOf(component) == panel.getItemCount() - 1) {
        if (panel.getBottomComponent() != null) {
          focusWidget(panel.getBottomComponent());
        } else if (panel.getHeader().getToolCount() > 0) {
          focusWidget(panel.getHeader().getTool(0));
        }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Header.indexOf()

  @Override
  public void onTab(Component component, PreviewEvent pe) {
    if (!isManaged()) return;
    pe.stopEvent();
    Header head = (Header)component.getParent().getParent();
    int index = head.indexOf(component);
    if (index == head.getToolCount() - 1) {
      stepInto(head.getParent(), pe, true);
      return;
    }
    super.onTab(component, pe);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.LayoutContainer.indexOf()

   * @return the index or -1 if not found
   */
  public int getPortletIndex(Portlet portlet) {
    LayoutContainer c = (LayoutContainer) portlet.getParent();
    if (c != null) {
      return c.indexOf(portlet);
    }
    return -1;
  }

  /**
 
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.toolbar.PagingToolBar.indexOf()

    if (!isManaged()) return;

    boolean paging = component.getParent() instanceof PagingToolBar;
    if (paging) {
      PagingToolBar bar = (PagingToolBar) component.getParent();
      int idx = bar.indexOf(component);
      int fa = firstActive(bar);
      int la = lastActive(bar);
      if ((pe.isShiftKey() && idx > fa) || (!pe.isShiftKey() && idx < (la - 1))) {
        super.onTab(component, pe);
        return;
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.buffer.ChannelBuffer.indexOf()

        }

        ChannelBuffer binaryData = buffer.readBytes(frameSize);
        buffer.skipBytes(1);

        int ffDelimPos = binaryData.indexOf(binaryData.readerIndex(), binaryData.writerIndex(), (byte) 0xFF);
        if (ffDelimPos >= 0) {
            throw new IllegalArgumentException("a text frame should not contain 0xFF.");
        }

        return new TextWebSocketFrame(binaryData);
View Full Code Here

Examples of com.facebook.presto.sql.analyzer.TupleDescriptor.indexOf()

            if (unionOutputSymbols == null) {
                // Use the first Relation to derive output symbol names
                TupleDescriptor descriptor = relationPlan.getDescriptor();
                ImmutableList.Builder<Symbol> outputSymbolBuilder = ImmutableList.builder();
                for (Field field : descriptor.getVisibleFields()) {
                    int fieldIndex = descriptor.indexOf(field);
                    Symbol symbol = childOutputSymobls.get(fieldIndex);
                    outputSymbolBuilder.add(symbolAllocator.newSymbol(symbol.getName(), symbolAllocator.getTypes().get(symbol)));
                }
                unionOutputSymbols = outputSymbolBuilder.build();
            }
View Full Code Here

Examples of com.goodow.realtime.json.JsonArray.indexOf()

    final JsonArray toRtn = Json.createArray();
    if (list != null) {
      list.forEach(new ListIterator<String>() {
        @Override
        public void call(int index, String parent) {
          if (toRtn.indexOf(parent) == -1) {
            toRtn.push(parent);
          }
        }
      });
    }
View Full Code Here

Examples of com.google.code.yanf4j.buffer.IoBuffer.indexOf()

            buf.put((byte) 0x3);
            buf.put((byte) 0x4);
            buf.position(2);
            buf.limit(5);

            assertEquals(4, buf.indexOf((byte) 0x1));
            assertEquals(-1, buf.indexOf((byte) 0x2));
            assertEquals(2, buf.indexOf((byte) 0x3));
            assertEquals(3, buf.indexOf((byte) 0x4));
        }
    }
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.