![]() |
Java Runtime 3.0.1
|
Static Public Member Functions | |
| static long | estimateSize (AlfaObject alfaObject) |
| static void | applyStreamingAsserts (String typeName, IBuilderConfig bc, Stream< AlfaObject > stream) |
| static void | notNull (String name, Object o) |
| static long | estimateSize (Set< String > strings, AlfaObject alfaObject) |
| static< T extends Builder > T | toBuilder (IBuilderConfig cfg, AlfaObject alfaObject) |
| static< T > Try< T > | createTryFailure (String msg) |
| static< T > Try< T > | createTryObject (T value) |
| static< L, R > Either< L, R > | createEitherLeftObject (L value) |
| static< L, R > Either< L, R > | createEitherRightObject (R value) |
| static< T, Void > Function< T, Void > | buildAssertAllResult () |
| static Optional< alfa.rt.model.annotation.db.TableDef > | getTableAnnotation (AlfaObject ao) |
| static Optional< alfa.rt.model.annotation.db.TableDef > | getTableAnnotation (TypeDescriptor descriptor) |
Alfa utility methods for constructing various Alfa based objects
|
inlinestatic |
Utility method to create am either left object with the given object as the left value
| value | Value to be used as the either left result |
| <L> | Class representing the value |
|
inlinestatic |
Utility method to create am either left object with the given object as the right value
| value | Value to be used as the either right result |
| <L> | Class representing the value |
|
inlinestatic |
Utility method to create a try failure object with the given message
| msg | Message to be used for the failure reason |
| <T> | Class representing the type expectedd in the Try value |
|
inlinestatic |
Utility method to create a try object with the given object as the valid Try result
| value | Value to be used as the try result |
| <T> | Class representing the value |
|
inlinestatic |
Give an estimate of the space consumed to keep this object in memory
| alfaObject | Object to estimate space for |
|
inlinestatic |
Give an estimate of the space consumed to keep this object in memory
| strings | Cache of strings |
| alfaObject | Object to estimate space for |
|
inlinestatic |
Return a Builder for the object, i.e. a mutable version of the immutable object
| cfg | Builder configuration to be used to construct the object |
| alfaObject | Immutable object that will be used to craete the newBuilder |