Documentation ¶
Overview ¶
Copyright 2020 newtbig Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 newtbig Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 newtbig Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func ToString(value interface{}) string
- type IMap
- type Iterator
- type Map
- func (this *Map) Ceiling(key interface{}) (ceiling *Node, found bool)
- func (this *Map) Clear()
- func (this *Map) Empty() bool
- func (this *Map) Floor(key interface{}) (floor *Node, found bool)
- func (tree *Map) FromJSON(data []byte) error
- func (this *Map) Get(key interface{}) (value interface{}, found bool)
- func (m *Map) Iterator() Iterator
- func (this *Map) Keys() []interface{}
- func (this *Map) Left() *Node
- func (this *Map) Put(key interface{}, value interface{})
- func (this *Map) Remove(key interface{})
- func (this *Map) Right() *Node
- func (this *Map) Size() int
- func (this *Map) String() string
- func (tree *Map) ToJSON() ([]byte, error)
- func (this *Map) Values() []interface{}
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IMap ¶
type IMap interface { containers.Container }
type Map ¶
type Map struct { Root *Node Comparator containers.Comparator // contains filtered or unexported fields }
func NewWith ¶
func NewWith(comparator containers.Comparator) *Map
func NewWithIntComparator ¶
func NewWithIntComparator() *Map
func NewWithStringComparator ¶
func NewWithStringComparator() *Map
func NewWithUInt32Comparator ¶
func NewWithUInt32Comparator() *Map