de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive


Class Archive

java.util.TreeMap
    inheritde.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.Archive
All known implemented Interfaces:
Comparator


public class Archive
Namespace: wikiarchive


An archive representation, that means a set of ArchiveEntrys together with a sort order.
Authors:
Jens Gulden
Version:
0.2.0


Attribute Summary
private static long  serialVersionUID
 

Method Summary
public void  add(ArchiveEntry entry)
Adds an entry to the archive.  
public int  compare(Object o1, Object o2)
Compares two ArhiveEntries with each other. This is done based on an case-insensitive comparison of the entry-names.  
public Comparator   getComparator()
Returns the comparator to be used for comparing pairs of entries and building a sorted entry list.  

Tagged Values
static false
documentation#author Jens Gulden
documentation#version 0.2.0

Attribute Detail

serialVersionUID

private static final long serialVersionUID

Multiplicity: 1..1
Ordering: unspecified

Method Detail

add

public void add(ArchiveEntry entry)


Adds an entry to the archive.
Parameters:
entry - The entry.


compare

public int compare(Object o1, Object o2)


Compares two ArhiveEntries with each other. This is done based on an case-insensitive comparison of the entry-names.
Parameters:
o1 - One ArchiveEntry.
o2 - Another ArchiveEntry.
Returns:


getComparator

public Comparator getComparator()


Returns the comparator to be used for comparing pairs of entries and building a sorted entry list.
Returns:
This archive's default entry-comparator.

previous   TOC   next

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in the USA and other countries. Copyright 2003-2006 Gentleware AG, Ludwigstr. 12, 20357 Hamburg, Germany. All Rights Reserved.
UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.