コード例 #1
0
  public boolean contains(String name) {
    boolean result = false;

    for (TransactionTypes type : TransactionTypes.values()) {
      if (type.toString().equalsIgnoreCase(name)) {
        result = true;
        break;
      }
    }

    return result;
  }
コード例 #2
0
 @Override
 public Object getCellValue(Object element) {
   ITransaction transaction = (ITransaction) element;
   Transaction t = transaction.getNative();
   return TransactionTypes.getTransactionType(t);
 }