Package com.uca.flights
Class Jump
- java.lang.Object
-
- com.uca.flights.Jump
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Redefinition of clonejava.time.DurationgetDuration()GetterJumpgetPreced()GetterbooleanhasNext()Getter, implementation of iteratorJumpnext()Getter, implementation of iterator
-
-
-
Method Detail
-
next
public Jump next()
Getter, implementation of iterator- Specified by:
nextin interfacejava.util.Iterator<Jump>- Returns:
- next jump
-
hasNext
public boolean hasNext()
Getter, implementation of iterator- Specified by:
hasNextin interfacejava.util.Iterator<Jump>- Returns:
- if next jump exist
-
getPreced
public Jump getPreced()
Getter- Returns:
- preceding jump
-
getDuration
public java.time.Duration getDuration()
Getter- Returns:
- duration of jump
-
clone
public java.lang.Object clone()
Redefinition of clone- Overrides:
clonein classjava.lang.Object- Returns:
- new jump with clone of the jump chain
-
-