Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.socialnetwork.model.util
Class SocialNetworkNodeComparator

java.lang.Object
  extended by oracle.apps.fnd.applcore.socialnetwork.model.util.SocialNetworkNodeComparator
All Implemented Interfaces:
java.util.Comparator

public class SocialNetworkNodeComparator
extends java.lang.Object
implements java.util.Comparator

Compare two Social Network Nodes and determine the order in which they should be displayed in the UI. The Nodes will be sorted by the value of getDisplayName().

Since:
11.1.1.7.1
Version:
$Header: atgpf/applcore/applications/SocialNetwork/Model/src/oracle/apps/fnd/applcore/socialnetwork/model/util/SocialNetworkNodeComparator.java /st_atgpf_pt-11.1.1.7.0/1 2013/02/11 22:05:40 pacross Exp $

Constructor Summary
SocialNetworkNodeComparator()
          Default Constructor.
 
Method Summary
 int compare(java.lang.Object object1, java.lang.Object object2)
          Compares two SocialNetworkNode 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

SocialNetworkNodeComparator

public SocialNetworkNodeComparator()
Default Constructor.

Method Detail

compare

public int compare(java.lang.Object object1,
                   java.lang.Object object2)
Compares two SocialNetworkNode objects.

Specified by:
compare in interface java.util.Comparator
Parameters:
object1 - the first result item to be compared
object2 - the second result item to be compared
Returns:
< 0 if first nodes display name comes alphabetically before second nodes display name (ascending); 0 if both social nodes have the same display name; >0 if first social node display name comes alphabetically after second social network node display name.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.