Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sourceforge.pebble.aggregator
Class NewsFeedEntryComparator

    java.lang.Object
      net.sourceforge.pebble.aggregator.NewsFeedEntryComparator

All Implemented Interfaces:
  java.util.Comparator<NewsFeedEntry>

    public class NewsFeedEntryComparator

extends java.lang.Object
implements java.util.Comparator<NewsFeedEntry>

A comparator used to order NewsFeedEntry instances, in reverse order of their date.

Author:
  Simon Brown

Constructor Summary
`NewsFeedEntryComparator()`

Method Summary
`int` | `compare(NewsFeedEntry entry1, NewsFeedEntry entry2)` Compares two 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

### NewsFeedEntryComparator

    public NewsFeedEntryComparator()

Method Detail

### compare

    public int compare(NewsFeedEntry entry1,
                       NewsFeedEntry entry2)

  Compares two objects.

  Specified by:
    `compare` in interface `java.util.Comparator<NewsFeedEntry>`
  Parameters:
    `entry1` - object 1
    `entry2` - object 2
  Returns:
    -n, 0 or +n if the date represented by the second blog entry is less than, the same as or greater than the first, respectively

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2006, Simon Brown. All Rights Reserved.