| Package | Description |
|---|---|
| pro.fessional.mirana.data | |
| pro.fessional.mirana.i18n | |
| pro.fessional.mirana.page | |
| pro.fessional.mirana.pain |
| Modifier and Type | Class and Description |
|---|---|
class |
R<T>
## Conventions
1.
|
static class |
R.Immutable<T>
throw UnsupportedOperationException if modify
|
| Modifier and Type | Method and Description |
|---|---|
static <T> R<T> |
R.ng(T data,
I18nAware code) |
static <T> R<T> |
R.ng(T data,
String code,
I18nAware message) |
static <T> R<T> |
R.ngCause(Throwable t,
I18nAware message) |
static <T> R<T> |
R.ngCause(Throwable t,
String code,
I18nAware message) |
static <T> R<T> |
R.ngMessage(I18nAware message) |
static <T> R<T> |
R.of(boolean success,
T data,
I18nAware message) |
static <T> R<T> |
R.of(boolean success,
T data,
String code,
I18nAware message) |
static <T> R<T> |
R.ofMessage(boolean success,
I18nAware message) |
static <T> R<T> |
R.ok(T data,
I18nAware code) |
static <T> R<T> |
R.ok(T data,
String code,
I18nAware message) |
static <T> R<T> |
R.okMessage(I18nAware message) |
| Constructor and Description |
|---|
R(boolean success,
T data,
I18nAware message) |
R(boolean success,
T data,
String code,
I18nAware message) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CodeEnum
business code, and can also be used as i18nCode.
|
interface |
I18nEnum
Empower i18n capability to common enums
|
| Modifier and Type | Class and Description |
|---|---|
class |
AssertErrorEnum
message rules,
- simplicity first.
|
class |
CrudErrorEnum |
class |
I18nMessage
global message for user, the i18n templates and parameters should be merged into
a local message based on the user's language, rather than the default message.
|
class |
I18nName
use name as i18nCode, without hint and args.
|
class |
I18nNotice
specified message for user to know what and why.
|
class |
I18nString
String can be used as i18n template (MessageFormat by default)
- i18nCode - template id, default empty
- i18nArgs - template arguments, default empty
- i18nHint - default text or template, not in hash and equals, default empty
- i18nCache - cached value for performance
|
| Modifier and Type | Method and Description |
|---|---|
static I18nString |
I18nString.of(@NotNull I18nAware i18n)
the string as i18nCode, empty args and hint
|
static @NotNull I18nNotice |
I18nNotice.of(@NotNull I18nAware i18n) |
static I18nMessage |
I18nMessage.of(@NotNull I18nAware i18n) |
I18nMessage |
I18nMessage.setMessageBy(I18nAware ia) |
I18nMessage |
I18nMessage.setMessageBy(String message,
I18nAware ia) |
| Modifier and Type | Class and Description |
|---|---|
class |
PageResult<E>
It is not recommended to change the page data after construction.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BadArgsException
Used for pre-check of arguments
|
class |
BadStateException
Used for post-check of state
|
class |
CodeException
Readability and performance first exception.
|
class |
CrudException
the tweaking priority is para, code, null.
|
class |
HttpStatusException
stackless exceptions with HttpStatus
|
class |
MessageException
Stackless exceptions used only to output business messages.
|
Copyright © 2025. All rights reserved.