Examples of AlphanumComparator


Examples of com.davekoelle.alphanum.AlphanumComparator

  }

  @Override
  public Comparator getComparator(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs)
  {
    return new AlphanumComparator();
  }
View Full Code Here

Examples of net.sf.uadetector.internal.util.AlphanumComparator

    if (other == null) {
      result = -1;
    } else {
      Check.notNull(other.getGroups(), "other.getGroups()");
      final int length = groups.size() < other.getGroups().size() ? groups.size() : other.getGroups().size();
      final AlphanumComparator comparator = new AlphanumComparator();
      result = comparator.compare(toVersionString(groups.subList(0, length)), toVersionString(other.getGroups().subList(0, length)));
      if (result == 0) {
        result = groups.size() > other.getGroups().size() ? 1 : groups.size() < other.getGroups().size() ? -1 : 0;
      }
      if (result == 0) {
        result = extension.compareTo(other.getExtension());
      }
      if (result == 0) {
        result = comparator.compare(toVersionString(), other.toVersionString());
      }
    }
    return result;
  }
View Full Code Here

Examples of org.rzo.yajsw.wrapper.AlphanumComparator

    ArrayList keys = new ArrayList();
    for (Iterator it = config.getKeys("wrapper.app.parameter"); it.hasNext();)
    {
      keys.add(it.next());
    }
    Collections.sort(keys, new AlphanumComparator());
    for (Iterator it = keys.listIterator(); it.hasNext();)
    {
      result.add(config.getString((String) it.next()));
    }
    String[] args = new String[result.size()];
View Full Code Here

Examples of org.sonatype.nexus.util.AlphanumComparator

    }
    return metadata;
  }

  public String getLatestVersion(List<String> versions) {
    Collections.sort(versions, new AlphanumComparator());

    return versions.get(versions.size() - 1);
  }
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.