Back to project page Glowplug.
The source code is released under:
MIT License
If you think the Android project Glowplug listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.adecker.glowplugcompiler.example.model; //from w ww . j a v a2 s . co m import android.database.Cursor; import android.util.JsonReader; /** * Created by alex on 12/19/13. */ public class MyActor extends ActorEntity { public MyActor() { super(); } public MyActor(JsonReader reader) throws IllegalStateException { super(reader); } public String getFirstNameCapitalized() { String firstName = getFirstName(); return firstName.substring(0,1).toUpperCase() + firstName.substring(1).toLowerCase(); } public String getLastNameCapitalized() { String lastName = getLastName(); return lastName.substring(0,1).toUpperCase() + lastName.substring(1).toLowerCase(); } @Override public String toString() { return this.getFirstNameCapitalized() + " " + this.getLastNameCapitalized(); } }