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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> List
<E> static <K,
V> Map <K, V> static <E> Set
<E> static <E> List
<E> makeSingleEntryList
(E listEntry) static <K,
V> Map <K, V> makeSingleEntryMap
(K mpEntryKey, V mapEntryValue) static <E> Set
<E> makeSingleEntrySet
(E setEntry)
-
Method Details
-
getEmptyList
-
getEmptyMap
-
getEmptySet
-
makeSingleEntryList
-
makeSingleEntryMap
-
makeSingleEntrySet
-
toDisplayString
String toDisplayString()
-