Movatterモバイル変換


[0]ホーム

URL:


Fork me on GitHub

BULL - Bean Utils Light Library


  • Home/
  • Bean Utils Light Library/
  • Kotlin project integration
  • | $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateValue
  • $i18n.getString( "site-renderer", $locale, "template.version" ): 3.0.0

$i18n.getString(

Kotlin project integration

This page shows how to use BULL inside a Kotlin project.It takes as example the Bean transformation, but the same approach can be used for all the other features.

Step 1

Add the project dependency into yourpom.xml file:

<dependency>    <groupId>com.expediagroup.beans</groupId>    <artifactId>bull-bean-transformer</artifactId>    <version>x.y.z</version></dependency>

Step 2

Given the following source object:

data class FromBean(val name: String)

and the following destination one:

data class ToBean(val name: String)

To transform the one into the other:

val fromBean = FromBean("Goofy")BeanUtils().transformer.transform(fromBean, ToBean::class.java)


[8]ページ先頭

©2009-2025 Movatter.jp