public class IDTO
extends DTO
Though any object with public fields (of limited types) can be a DTO, there
is sometimes an advantage in having a base class that provides
equals(Object), hashCode(), and Object.toString(). This
class can be used by DTOs.
TODO TESTING!!! not yet verified
| Modifier | Constructor and Description |
|---|---|
protected |
IDTO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
static <T> java.util.List<T> |
list()
A helper method to initialize a IDTO field with a list
|
static <K,V> java.util.Map<K,V> |
map()
A helper method to initialize a IDTO field with a map
|
static <T> java.util.Set<T> |
set()
A helper method to initialize a IDTO field with a set
|
public boolean equals(java.lang.Object other)
public int hashCode()
public static <T> java.util.List<T> list()
public static <T> java.util.Set<T> set()
public static <K,V> java.util.Map<K,V> map()
Copyright (c) OSGi Alliance (2014, 2020). All Rights Reserved.