SimpleBindings.kt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Decompiled with CFR 0.152.
  3. */
  4. package com.script
  5. class SimpleBindings @JvmOverloads constructor(
  6. private val map: MutableMap<String, Any?> = HashMap()
  7. ) : Bindings {
  8. override fun put(key: String, value: Any?): Any? {
  9. return map.put(key, value)
  10. }
  11. override fun putAll(from: Map<out String, Any?>) {
  12. map.putAll(from)
  13. }
  14. override fun clear() {
  15. map.clear()
  16. }
  17. override fun containsKey(key: String): Boolean {
  18. return map.containsKey(key)
  19. }
  20. override fun containsValue(value: Any?): Boolean {
  21. return map.containsValue(value)
  22. }
  23. override val entries: MutableSet<MutableMap.MutableEntry<String, Any?>>
  24. get() = map.entries
  25. override operator fun get(key: String): Any? {
  26. return map[key]
  27. }
  28. override fun isEmpty(): Boolean {
  29. return map.isEmpty()
  30. }
  31. override val keys: MutableSet<String>
  32. get() = map.keys
  33. override fun remove(key: String): Any? {
  34. return map.remove(key)
  35. }
  36. override val size: Int
  37. get() = map.size
  38. override val values: MutableCollection<Any?>
  39. get() = map.values
  40. }