org.mmbase.module.builders.vwms
Class PriorityURL

java.lang.Object
  |
  +--org.mmbase.module.builders.vwms.PriorityURL
All Implemented Interfaces:
Sortable

public class PriorityURL
extends java.lang.Object
implements Sortable

Class PriorityURL


Field Summary
static int DEF_PRIORITY
           
static int HIGH_PRIORITY
           
static int LOW_PRIORITY
           
static int MAX_PRIORITY
           
static int MEDIUM_PRIORITY
           
static int MIN_PRIORITY
           
 
Constructor Summary
PriorityURL(java.lang.String url)
           
PriorityURL(java.lang.String url, int priority)
           
 
Method Summary
 int compare(Sortable otherone)
          The compare function called by SortedVector to sort things
 void decreasePriority()
           
 int getPriority()
           
 java.lang.String getURL()
           
 int hashCode()
           
 void increasePriority()
           
 void setPriority(int priority)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_PRIORITY

public static int MIN_PRIORITY

LOW_PRIORITY

public static int LOW_PRIORITY

DEF_PRIORITY

public static int DEF_PRIORITY

MEDIUM_PRIORITY

public static int MEDIUM_PRIORITY

HIGH_PRIORITY

public static int HIGH_PRIORITY

MAX_PRIORITY

public static int MAX_PRIORITY
Constructor Detail

PriorityURL

public PriorityURL(java.lang.String url)

PriorityURL

public PriorityURL(java.lang.String url,
                   int priority)
Method Detail

getURL

public java.lang.String getURL()

getPriority

public int getPriority()

setPriority

public void setPriority(int priority)

increasePriority

public void increasePriority()

decreasePriority

public void decreasePriority()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compare

public int compare(Sortable otherone)
Description copied from interface: Sortable
The compare function called by SortedVector to sort things
Specified by:
compare in interface Sortable
Following copied from interface: org.mmbase.util.Sortable
See Also:
SortedVector

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


MMBase build 1.6.5.20030923