Package org.ojalgo.type
Interface BusinessObject
-
public interface BusinessObject
- Each/every business object interface should extends this
BusinessObject
interface (and preferably nothing else). Don't build hierarchies among the business object interfaces. If some interfaces have common properties they can/should extend some common package-private (not public) interface that does not exted BusinessObject. - Every interface should have an inner abstract static class named Logic. These classes contain static business logic methods defined in terms of the interfaces. Those methods are the real reason the business object interfaces exist. Do NOT add anything to the interfaces that is not required by any of the business logic methods!
- Try to avoid defining relationships to other BusinessObject in the interfaces, particularly to-many relationships. Prefer having the logic methods take collections as input parameters.
- Each/every business object interface should extends this
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <E> java.util.List<E>
getEmptyList()
static <K,V>
java.util.Map<K,V>getEmptyMap()
static <E> java.util.Set<E>
getEmptySet()
static <E> java.util.List<E>
makeSingleEntryList(E listEntry)
static <K,V>
java.util.Map<K,V>makeSingleEntryMap(K mpEntryKey, V mapEntryValue)
static <E> java.util.Set<E>
makeSingleEntrySet(E setEntry)
java.lang.String
toDisplayString()
-
-
-
Method Detail
-
getEmptyList
static <E> java.util.List<E> getEmptyList()
-
getEmptyMap
static <K,V> java.util.Map<K,V> getEmptyMap()
-
getEmptySet
static <E> java.util.Set<E> getEmptySet()
-
makeSingleEntryList
static <E> java.util.List<E> makeSingleEntryList(E listEntry)
-
makeSingleEntryMap
static <K,V> java.util.Map<K,V> makeSingleEntryMap(K mpEntryKey, V mapEntryValue)
-
makeSingleEntrySet
static <E> java.util.Set<E> makeSingleEntrySet(E setEntry)
-
toDisplayString
java.lang.String toDisplayString()
-
-