Examples of split()


Examples of com.google.common.base.Splitter.split()

    private static HazelcastInstance setupHazelCast(String hosts) {
        Config config = new ClasspathXmlConfig("cluster.xml");

        Splitter onCommas = Splitter.on(",").omitEmptyStrings().trimResults();
        for (String host : onCommas.split(hosts)) {
            config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
            config.getNetworkConfig().getJoin().getTcpIpConfig().setEnabled(true);
            config.getNetworkConfig().getJoin().getTcpIpConfig().addMember(host);
        }
View Full Code Here

Examples of com.google.common.base.Splitter.split()

      String language = "";
      String country = "";
      String variant = "";
      Splitter _on = Splitter.on("_");
      Splitter _trimResults = _on.trimResults();
      Iterable<String> _split = _trimResults.split(locale);
      final Iterator<String> tokens = _split.iterator();
      boolean _hasNext = tokens.hasNext();
      if (_hasNext) {
        String _next = tokens.next();
        language = _next;
View Full Code Here

Examples of com.google.common.base.Splitter.split()

      for (String line : Splitter.on("\n").trimResults().omitEmptyStrings().split(psk)) {
        if (line.startsWith("#")) {
          continue;
        }

        List<String> tokens = Lists.newArrayList(keyValueSpliter.split(line));
        if (tokens.size() != 2) {
          throw new OpsException("Cannot parse PSK line: " + line);
        }

        String key = tokens.get(0);
View Full Code Here

Examples of com.google.gwt.regexp.shared.RegExp.split()

     * @return Formatted string.
     * @see <a href="http://stackoverflow.com/questions/3126232/string-formatter-in-gwt">Stack Overflow</a>
     */
    public static String format(final String format, final Object... args) {
        RegExp regex = RegExp.compile("%[a-z]");
        SplitResult split = regex.split(format);
        StringBuffer msg = new StringBuffer();

        for (int pos = 0; pos < split.length() - 1; pos += 1) {
            msg.append(split.get(pos));
            msg.append(args[pos].toString());
View Full Code Here

Examples of com.google.gwt.thirdparty.guava.common.base.Splitter.split()

        }

        @Override
        public boolean setString(String str) {
          Splitter splitter = Splitter.on(",").omitEmptyStrings().trimResults();
          shell.userAgentsOpt = ImmutableSet.copyOf(splitter.split(str));
          return true;
        }
      });

      registerHandler(new ArgHandlerIncrementalCompile(options));
View Full Code Here

Examples of com.google.gwt.user.client.ui.Label.split()

                        Float prePointValue = null;
                        Long lastIncrement = null;
                        for (String val : values){

                            //Values and timestamps are separated with a '_' character
                            String[] v = val.split("_");

                            //Get the value
                            Float value = Float.parseFloat(v[0]);

                            //Get the time/increment
View Full Code Here

Examples of com.hp.hpl.jena.tdb.index.bplustree.BPTreeRecords.split()

    {
        BPTreeRecords bpr = make() ;
        fill(bpr) ;
        int s = bpr.getCount();
        assertTrue(bpr.isFull()) ;
        BPTreePage z = bpr.split() ;
        assertTrue(z instanceof BPTreeRecords) ;
        assertEquals(s, z.getCount()+bpr.getCount()) ;
        check(bpr) ;
        check((BPTreeRecords)z) ;
        bpr.release() ;
View Full Code Here

Examples of com.intellij.openapi.fileEditor.impl.EditorWindow.split()

    Project project = bnfFile.getProject();
    installUpdateListener(project);

    FileEditorManagerEx fileEditorManager = FileEditorManagerEx.getInstanceEx(project);
    EditorWindow curWindow = fileEditorManager.getCurrentWindow();
    curWindow.split(SwingConstants.HORIZONTAL, false, virtualFile, true);
    fileEditorManager.openFile(virtualFile, true);
  }

  @Nullable
  public static PsiFile parseFile(BnfFile bnfFile, String text) {
View Full Code Here

Examples of com.projity.pm.assignment.Assignment.split()

    Iterator i = getAssignments().iterator();
    Assignment assignment;
    while (i.hasNext()) {
      assignment = (Assignment)i.next();
      assignment.split(eventSource,from,to);
    }
    recalculate(eventSource); // need to recalculate
    assignParentActualDatesFromChildren();

  }
View Full Code Here

Examples of com.volantis.styling.impl.engine.PropertySplitter.split()

    private void doSplitterTest(
            MutableStyleProperties properties,
            final PropertyValue[] expectedImportant,
            final PropertyValue[] expectedNormal) {
        PropertySplitter splitter = new PropertySplitterImpl(valueCompilerMock);
        Prioritised[] prioritised = splitter.split(properties);

        Map map = new HashMap();
        map.put(Priority.NORMAL, expectedNormal);
        map.put(Priority.IMPORTANT, expectedImportant);
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.