Jonathan Hart | 382623d | 2014-04-03 09:48:11 -0700 | [diff] [blame] | 1 | package net.onrc.onos.apps.bgproute; |
Jonathan Hart | 8f5f468 | 2013-08-07 22:13:39 +1200 | [diff] [blame] | 2 | |
| 3 | import java.util.Iterator; |
| 4 | |
Jonathan Hart | 29b972d | 2013-08-12 23:43:51 +1200 | [diff] [blame] | 5 | public interface IPatriciaTrie<V> { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 6 | public V put(Prefix prefix, V value); |
| 7 | |
| 8 | public V lookup(Prefix prefix); |
| 9 | |
| 10 | public V match(Prefix prefix); |
| 11 | |
| 12 | public boolean remove(Prefix prefix, V value); |
| 13 | |
| 14 | public Iterator<Entry<V>> iterator(); |
| 15 | |
| 16 | interface Entry<V> { |
| 17 | public Prefix getPrefix(); |
| 18 | |
| 19 | public V getValue(); |
| 20 | } |
Jonathan Hart | 8f5f468 | 2013-08-07 22:13:39 +1200 | [diff] [blame] | 21 | } |