toggle menu
MoulConfig
3.2.0
jvm
switch theme
search in API
common
/
io.github.notenoughupdates.moulconfig.managed
/
ManagedDataFileBuilder
Managed
Data
File
Builder
open
class
ManagedDataFileBuilder
<
T
>
(
var
file
:
File
,
val
clazz
:
Class
<
T
>
)
(
source
)
Inheritors
ManagedConfigBuilder
Members
Constructors
Managed
Data
File
Builder
Link copied to clipboard
constructor
(
file
:
File
,
clazz
:
Class
<
T
>
)
Properties
after
Load
Link copied to clipboard
open
var
afterLoad
:
Consumer
<
ManagedDataFile
<
T
>
>
after
Save
Link copied to clipboard
open
var
afterSave
:
Consumer
<
ManagedDataFile
<
T
>
>
before
Load
Link copied to clipboard
open
var
beforeLoad
:
Consumer
<
ManagedDataFile
<
T
>
>
before
Save
Link copied to clipboard
open
var
beforeSave
:
Consumer
<
ManagedDataFile
<
T
>
>
clazz
Link copied to clipboard
val
clazz
:
Class
<
T
>
file
Link copied to clipboard
var
file
:
File
load
Failed
Link copied to clipboard
open
var
loadFailed
:
BiConsumer
<
ManagedDataFile
<
T
>
,
Exception
>
mapper
Link copied to clipboard
var
mapper
:
DataMapper
<
T
>
save
Failed
Link copied to clipboard
open
var
saveFailed
:
BiConsumer
<
ManagedDataFile
<
T
>
,
Exception
>
Functions
json
Mapper
Link copied to clipboard
@
JvmOverloads
fun
jsonMapper
(
function
:
GsonMapper
<
T
>
.
(
)
->
Unit
=
{}
)
throw
On
Failure
Link copied to clipboard
fun
throwOnFailure
(
)