linkedhashmap

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Portions Copyright 2025 bibenga

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You 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

https://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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefault

func NewDefault[K comparable, V any](hash func(K) uint32) orderedmap.Map[K, V]

Types

type LinkedHashMap

type LinkedHashMap[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable, V any](
	capacity int,
	loadFactor float64,
	hashFunc func(K) uint32,
) *LinkedHashMap[K, V]

func (*LinkedHashMap[K, V]) Clear

func (m *LinkedHashMap[K, V]) Clear()

func (*LinkedHashMap[K, V]) Clone

func (m *LinkedHashMap[K, V]) Clone() orderedmap.Map[K, V]

func (*LinkedHashMap[K, V]) ContainsKey

func (m *LinkedHashMap[K, V]) ContainsKey(key K) bool

func (*LinkedHashMap[K, V]) Delete

func (m *LinkedHashMap[K, V]) Delete(key K) (V, bool)

func (*LinkedHashMap[K, V]) Get

func (m *LinkedHashMap[K, V]) Get(key K) (V, bool)

func (*LinkedHashMap[K, V]) IsEmpty

func (m *LinkedHashMap[K, V]) IsEmpty() bool

func (*LinkedHashMap[K, V]) Items

func (m *LinkedHashMap[K, V]) Items() iter.Seq2[K, V]

func (*LinkedHashMap[K, V]) Keys

func (m *LinkedHashMap[K, V]) Keys() iter.Seq[K]

func (*LinkedHashMap[K, V]) Put

func (m *LinkedHashMap[K, V]) Put(key K, value V) (V, bool)

func (*LinkedHashMap[K, V]) Size

func (m *LinkedHashMap[K, V]) Size() int

func (*LinkedHashMap[K, V]) String

func (m *LinkedHashMap[K, V]) String() string

func (*LinkedHashMap[K, V]) Values

func (m *LinkedHashMap[K, V]) Values() iter.Seq[V]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL