cz.zcu.fav.kiv.ppr
Class Occurence

java.lang.Object
  extended by cz.zcu.fav.kiv.ppr.Occurence
All Implemented Interfaces:
IOccurence, java.lang.Comparable

public class Occurence
extends java.lang.Object
implements java.lang.Comparable, IOccurence

PPR1 Class for objects in arrayList cz.zcu.fav.kiv.ppr Occurence.java

Author:
kablazka

Constructor Summary
Occurence(int line, int pos)
          Constructor of the class Occurence.java
 
Method Summary
 int compareTo(java.lang.Object o)
          compareTo Compare to line and then to position
 int getLine()
          Getters
 int getPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Occurence

public Occurence(int line,
                 int pos)
Constructor of the class Occurence.java

Parameters:
line -
pos -
Method Detail

getLine

public int getLine()
Description copied from interface: IOccurence
Getters

Specified by:
getLine in interface IOccurence

getPosition

public int getPosition()
Specified by:
getPosition in interface IOccurence

compareTo

public int compareTo(java.lang.Object o)
compareTo Compare to line and then to position

Specified by:
compareTo in interface java.lang.Comparable