Views
- View = collection that shows objects that are stored
elsewhere
- Example: Arrays.asList
- String[] strings = { "Kenya", "Thailand", "Portugal"
};
List view = Arrays.asList(strings)
- Does not copy elements!
- Can use view for common services
otherList.addAll(view);
previous |
start |
next .... [Slide 26] ....