okardec

Untitled

Sep 14th, 2020
789
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package core
  2.  
  3. open class Base2VO {
  4.  
  5.     var fields = mutableMapOf<String, String>()
  6.  
  7.  
  8.     fun addField(fieldName: String, fieldValue: String){
  9.  
  10.         fields.put(fieldName,fieldValue)
  11.  
  12.     }
  13.  
  14.     fun getField(fieldName: String): String? {
  15.  
  16.         return fields.get(fieldName)
  17.  
  18.     }
  19.  
  20.     @JvmName("getFields1")
  21.     fun getFields(): MutableMap<String, String> {
  22.         return fields;
  23.     }
  24.  
  25.  
  26.  
  27. }
RAW Paste Data