@@ -47,23 +47,23 @@ public interface PersistentMap<K, out V> : ImmutableMap<K, V> {
47
47
* @return a new persistent map with the specified [value] associated with the specified [key];
48
48
* or this instance if no modifications were made in the result of this operation.
49
49
*/
50
- fun put (key : K , value : @UnsafeVariance V ): PersistentMap <K , V >
50
+ public fun put (key : K , value : @UnsafeVariance V ): PersistentMap <K , V >
51
51
52
52
/* *
53
53
* Returns the result of removing the specified [key] and its corresponding value from this map.
54
54
*
55
55
* @return a new persistent map with the specified [key] and its corresponding value removed;
56
56
* or this instance if it contains no mapping for the key.
57
57
*/
58
- fun remove (key : K ): PersistentMap <K , V >
58
+ public fun remove (key : K ): PersistentMap <K , V >
59
59
60
60
/* *
61
61
* Returns the result of removing the entry that maps the specified [key] to the specified [value].
62
62
*
63
63
* @return a new persistent map with the entry for the specified [key] and [value] removed;
64
64
* or this instance if it contains no entry with the specified key and value.
65
65
*/
66
- fun remove (key : K , value : @UnsafeVariance V ): PersistentMap <K , V >
66
+ public fun remove (key : K , value : @UnsafeVariance V ): PersistentMap <K , V >
67
67
68
68
/* *
69
69
* Returns the result of merging the specified [m] map with this map.
@@ -74,12 +74,12 @@ public interface PersistentMap<K, out V> : ImmutableMap<K, V> {
74
74
* @return a new persistent map with keys and values from the specified map [m] associated;
75
75
* or this instance if no modifications were made in the result of this operation.
76
76
*/
77
- fun putAll (m : Map <out K , @UnsafeVariance V >): PersistentMap <K , V > // m: Iterable<Map.Entry<K, V>> or Map<out K,V> or Iterable<Pair<K, V>>
77
+ public fun putAll (m : Map <out K , @UnsafeVariance V >): PersistentMap <K , V > // m: Iterable<Map.Entry<K, V>> or Map<out K,V> or Iterable<Pair<K, V>>
78
78
79
79
/* *
80
80
* Returns an empty persistent map.
81
81
*/
82
- fun clear (): PersistentMap <K , V >
82
+ public fun clear (): PersistentMap <K , V >
83
83
84
84
/* *
85
85
* A generic builder of the persistent map. Builder exposes its modification operations through the [MutableMap] interface.
@@ -97,7 +97,7 @@ public interface PersistentMap<K, out V> : ImmutableMap<K, V> {
97
97
*
98
98
* When [build] is called the builder forgets about all owned nodes it had created.
99
99
*/
100
- interface Builder <K , V >: MutableMap <K , V > {
100
+ public interface Builder <K , V >: MutableMap <K , V > {
101
101
/* *
102
102
* Returns a persistent map with the same contents as this builder.
103
103
*
@@ -107,13 +107,13 @@ public interface PersistentMap<K, out V> : ImmutableMap<K, V> {
107
107
* - on the first call it returns the same persistent map instance this builder was obtained from.
108
108
* - on subsequent calls it returns the same previously returned persistent map instance.
109
109
*/
110
- fun build (): PersistentMap <K , V >
110
+ public fun build (): PersistentMap <K , V >
111
111
}
112
112
113
113
/* *
114
114
* Returns a new builder with the same contents as this map.
115
115
*
116
116
* The builder can be used to efficiently perform multiple modification operations.
117
117
*/
118
- fun builder (): Builder <K , @UnsafeVariance V >
118
+ public fun builder (): Builder <K , @UnsafeVariance V >
119
119
}
0 commit comments