public class

AlphabeticalGroupingSupport

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.util.actions.AlphabeticalGroupingSupport

Class Overview

This class provides support for grouping a collection of data alphabetically. This is used and useful for displaying alphabetically grouped list of pages and labels.

Note: numerics are grouped together into the group 0-9

Note: the extraction of the name of an object from the object is presently hard coded in this class, and only ContentEntityObjects and Labels are reasonably supported.

See Also
  • #extractFirstCharacter(Object)

Summary

Constants
String NUMERIC
Public Constructors
AlphabeticalGroupingSupport(Collection c)
Public Methods
List getContents(String s)
Return the content that begins with the specified string.
List getContents()
Return all of the content
List getContents(char c)
boolean hasContent(char c)
Return true if there is content that starts with the specified character
boolean hasContent(String s)
Return true if there is content that starts with the specified string.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String NUMERIC

Constant Value: "numeric"

Public Constructors

public AlphabeticalGroupingSupport (Collection c)

Public Methods

public List getContents (String s)

Return the content that begins with the specified string.

public List getContents ()

Return all of the content

public List getContents (char c)

public boolean hasContent (char c)

Return true if there is content that starts with the specified character

public boolean hasContent (String s)

Return true if there is content that starts with the specified string.