GODPAPER | All Packages | All Classes | Index | Frames No Frames |
Prioritizable

Package | de.polygonal.ds
Class | public class Prioritizable
Inheritance | Prioritizable Object

All objects stored in a PriorityQueue have to extend this class. I could have defined this as an interface, but this would force me to write getters for accessing the priority value.

Public Properties

| Property | Defined By
--- | --- | ---
|  | priority : int | Prioritizable

Public Methods

| Method | Defined By
--- | --- | ---
|  | Prioritizable(priority:int = -1) | Prioritizable
|  | toString():String | Prioritizable

Property Detail

priority | property

`public var priority:int`

Constructor Detail

Prioritizable | () | Constructor

`public function Prioritizable(priority:int = -1)`

Parameters

| `priority:int` (default = `-1`)``

Method Detail

toString | () | method

`public function toString():String`

Returns

| `String`

Thu Jan 16 2014, 01:11 PM +08:00