--

Do you need to format a string representation for Credential? Because I don’t have that exact format template anymore, but it’s hardly rocket science to compose one. I’m going with Kotlin for Credential, leaving to you to adapt it to your specific use case and/or port it to Java:

"Credential — ID: ${credential.id}, Name: ${credential.name}, Password: ${credential.password}, Type: ${credential.type}"

Going off the top of my head so it may not work 100% but there is literally nothing obscure about creating such a string, I think.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Sebastiano Poggi — seb@androiddev.social
Sebastiano Poggi — seb@androiddev.social

Written by Sebastiano Poggi — seb@androiddev.social

"It depends" 🤷‍♂️ - UXE on Android Studio at Google. A geek 🤓 who has a serious thing for good design ✨ and for emojis 🤟 Personal opinions only 😁

Responses (1)

Write a response