public class Heap extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
name
The name of the heap.
|
(package private) List<ObjectVal> |
objects
The contained objects.
|
Constructor and Description |
---|
Heap(String name)
Creates a new heap with the given name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(ObjectVal object)
Adds an object to the heap.
|
boolean |
equals(Object that)
Heaps with equal names are equal.
|
String |
getName() |
List<ObjectVal> |
getObjects() |
String |
toString() |
String name
public Heap(String name)
name
-