Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.config.util
Class SDUtil.StringNumericComparator

java.lang.Object
  extended by oracle.apps.fnd.applseed.config.util.SDUtil.StringNumericComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
SDUtil

public static class SDUtil.StringNumericComparator
extends java.lang.Object
implements java.util.Comparator

Static class to support sort of strings so that the numbers at the end of the string are given numeric weightage. The string objects are split into String and Integer parts and processed.


Constructor Summary
SDUtil.StringNumericComparator()
           
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          Method compares two string objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SDUtil.StringNumericComparator

public SDUtil.StringNumericComparator()
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Method compares two string objects. The sort order is alphanumeric for the string. If the trailing portion of the string has a numeric component, the numeric component is sorted numeric.

Specified by:
compare in interface java.util.Comparator
Parameters:
obj1 - first string object to be compared
obj2 - second string object to be compared
Returns:
Compares its two arguments for order.

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.