Jonathan Hart | 1530ccc | 2013-04-03 19:36:02 -0700 | [diff] [blame] | 1 | package net.onrc.onos.registry.controller; |
| 2 | |
| 3 | public class IdBlock { |
| 4 | private long start; |
| 5 | private long end; |
| 6 | private long size; |
| 7 | |
| 8 | public IdBlock(long start, long end, long size) { |
| 9 | this.start = start; |
| 10 | this.end = end; |
| 11 | this.size = size; |
| 12 | } |
| 13 | |
| 14 | public long getStart() { |
| 15 | return start; |
| 16 | } |
| 17 | |
| 18 | public long getEnd() { |
| 19 | return end; |
| 20 | } |
| 21 | |
| 22 | public long getSize() { |
| 23 | return size; |
| 24 | } |
| 25 | |
| 26 | @Override |
| 27 | public String toString() { |
| 28 | return "IdBlock [start=" + start + ", end=" + end + ", size=" + size |
| 29 | + "]"; |
| 30 | } |
| 31 | } |