public class Profile extends java.util.ArrayList<ProfileItem>
Constructor and Description |
---|
Profile()
It constructs the prophet file.
|
Profile(short type)
It constructs the profile of a given type (e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
addToProfile(int a,
int b,
int val)
It adds given amount (val) to the profile between a and b.
|
int |
max()
It returns the max height of the profile item encountered in the profile.
|
java.lang.String |
toString() |
public Profile()
public Profile(short type)
type
- public void addToProfile(int a, int b, int val)
a
- the minimum range at which it is being added.b
- the maximum range at which it is being added.val
- the amount by which the profiles is updated.public int max()
public java.lang.String toString()
toString
in class java.util.AbstractCollection<ProfileItem>