Jonathan Hart | 8f5f468 | 2013-08-07 22:13:39 +1200 | [diff] [blame^] | 1 | package net.onrc.onos.ofcontroller.bgproute; |
2 | |||||
3 | import java.util.Iterator; | ||||
4 | |||||
5 | public interface IPatriciaTrie { | ||||
6 | public Rib put(Prefix p, Rib r); | ||||
7 | |||||
8 | public Rib lookup(Prefix p); | ||||
9 | |||||
10 | public Rib match(Prefix p); | ||||
11 | |||||
12 | public boolean remove(Prefix p, Rib r); | ||||
13 | |||||
14 | public Iterator<Entry> iterator(); | ||||
15 | |||||
16 | interface Entry { | ||||
17 | public Prefix getPrefix(); | ||||
18 | public Rib getRib(); | ||||
19 | } | ||||
20 | } |