Created
November 11, 2018 20:44
-
-
Save sienatime/ae131821d1e11e37c668c99200a19b1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Fts4(contentEntity = Entry.class) | |
@Entity(tableName = "entriesFts") | |
public class EntryFts { | |
@ColumnInfo(name = "primary_kanji") | |
private String primaryKanji; | |
@NonNull | |
@ColumnInfo(name = "primary_reading") | |
private String primaryReading; | |
@ColumnInfo(name = "other_kanji") | |
private String otherKanji; | |
@ColumnInfo(name = "other_readings") | |
private String otherReadings; | |
public EntryFts(String primaryKanji, @NonNull String primaryReading, String otherKanji, | |
String otherReadings) { | |
this.primaryKanji = primaryKanji; | |
this.primaryReading = primaryReading; | |
this.otherKanji = otherKanji; | |
this.otherReadings = otherReadings; | |
} | |
public String getPrimaryKanji() { | |
return primaryKanji; | |
} | |
@NonNull public String getPrimaryReading() { | |
return primaryReading; | |
} | |
public String getOtherKanji() { | |
return otherKanji; | |
} | |
public String getOtherReadings() { | |
return otherReadings; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment