View Javadoc

1   package com.loribel.commons.abstraction;
2   
3   import java.util.*;
4   
5   /***
6    * Abstraction of object that have read-write value.
7    *
8    * @author Grégory Borelli
9    */
10  public interface GB_ValuesOwnerSet
11  //extends GB_ValuesOwner
12  {
13      /***
14       * Add a value item to the the list of values
15       *
16       * @param a_value Object -
17       *
18       * @return boolean
19       */
20      boolean addValueItem(
21              Object a_value);
22  
23      /***
24       * Add somes value items to the the list of values
25       *
26       * @param a_values Collection -
27       */
28      void addAllValueItem(
29              Collection a_values);
30  
31      /***
32       * Remove a value item from the list of values.
33       *
34       * @param a_value Object -
35       *
36       * @return boolean
37       */
38      boolean removeValueItem(
39              Object a_value);
40  
41      /***
42       * Remove all the value items from the list of values.
43       */
44      void removeAllValueItems();
45  
46  }