Created
August 22, 2020 11:10
-
-
Save ibrahimyilmaz/68d36b1938637e5cfeccb03444b3140b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public final class TransactionUtils { | |
public static String getTransactionWithFormattedTime(final Transaction transaction) { | |
String transactionTime = transaction.getTransactionTime(); | |
return SomeFormattings(transactionTime); | |
} | |
} | |
//Lets say we are in the ViewHolder of a RecyclerView.Adapter | |
public void onBindViewHolder(...){ | |
transactionTime.setText(TransactionUtils.getTransactionWithFormattedTime(transaction.getTransactionTime())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment