tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net; |
2 | |||||
3 | /** | ||||
4 | * Example of a simple service that provides greetings and it | ||||
5 | * remembers the names which were greeted. | ||||
6 | */ | ||||
7 | public interface GreetService { | ||||
8 | |||||
9 | /** | ||||
10 | * Returns a greeting tailored to the specified name. | ||||
11 | * | ||||
12 | * @param name some name | ||||
13 | * @return greeting | ||||
14 | */ | ||||
15 | String yo(String name); | ||||
16 | |||||
17 | /** | ||||
18 | * Returns an iterable of names encountered thus far. | ||||
19 | * | ||||
20 | * @return iterable of names | ||||
21 | */ | ||||
22 | Iterable<String> names(); | ||||
23 | } |