examples

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2016 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayListExample

func ArrayListExample()

ArrayListExample to demonstrate basic usage of ArrayList

func ArrayStackExample

func ArrayStackExample()

ArrayStackExample to demonstrate basic usage of ArrayStack

func BinaryHeapExample

func BinaryHeapExample()

BinaryHeapExample to demonstrate basic usage of BinaryHeap

func CustomComparatorExample

func CustomComparatorExample()

CustomComparatorExample to demonstrate basic usage of CustomComparator

func DoublyLinkedListExample

func DoublyLinkedListExample()

DoublyLinkedListExample to demonstrate basic usage of DoublyLinkedList

func EnumerableWithIndexExample added in v1.1.0

func EnumerableWithIndexExample()

EnumerableWithIndexExample to demonstrate basic usage of EnumerableWithIndex

func EunumerableWithKeyExample added in v1.1.0

func EunumerableWithKeyExample()

EunumerableWithKeyExample to demonstrate basic usage of EunumerableWithKey

func HashBidiMapExample added in v1.3.0

func HashBidiMapExample()

HashBidiMapExample to demonstrate basic usage of HashMap

func HashMapExample

func HashMapExample()

HashMapExample to demonstrate basic usage of HashMap

func HashSetExample

func HashSetExample()

HashSetExample to demonstrate basic usage of HashSet

func IteratorWithIndexExample added in v1.2.0

func IteratorWithIndexExample()

IteratorWithIndexExample to demonstrate basic usage of IteratorWithIndex

func IteratorWithKeyExample added in v1.2.0

func IteratorWithKeyExample()

IteratorWithKeyExample to demonstrate basic usage of IteratorWithKey

func LinkedListStackExample

func LinkedListStackExample()

LinkedListStackExample to demonstrate basic usage of LinkedListStack

func RedBlackTreeExample

func RedBlackTreeExample()

RedBlackTreeExample to demonstrate basic usage of RedBlackTree

func RedBlackTreeExtendedExample

func RedBlackTreeExtendedExample()

RedBlackTreeExtendedExample main method on how to use the custom red-black tree above

func SinglyLinkedListExample

func SinglyLinkedListExample()

SinglyLinkedListExample to demonstrate basic usage of SinglyLinkedList

func SortExample

func SortExample()

SortExample to demonstrate basic usage of basic sort

func TreeBidiMapExample added in v1.4.0

func TreeBidiMapExample()

TreeBidiMapExample to demonstrate basic usage of TreeBidiMap

func TreeMapExample

func TreeMapExample()

TreeMapExample to demonstrate basic usage of TreeMap

func TreeSetExample

func TreeSetExample()

TreeSetExample to demonstrate basic usage of TreeSet

Types

type RedBlackTreeExtended

type RedBlackTreeExtended struct {
	*rbt.Tree
}

RedBlackTreeExtended to demonstrate how to extend a RedBlackTree to include new functions

func (*RedBlackTreeExtended) GetMax

func (tree *RedBlackTreeExtended) GetMax() (value interface{}, found bool)

GetMax gets the max value and flag if found

func (*RedBlackTreeExtended) GetMin

func (tree *RedBlackTreeExtended) GetMin() (value interface{}, found bool)

GetMin gets the min value and flag if found

func (*RedBlackTreeExtended) RemoveMax

func (tree *RedBlackTreeExtended) RemoveMax() (value interface{}, deleted bool)

RemoveMax removes the max value and flag if found

func (*RedBlackTreeExtended) RemoveMin

func (tree *RedBlackTreeExtended) RemoveMin() (value interface{}, deleted bool)

RemoveMin removes the min value and flag if found

type User

type User struct {
	// contains filtered or unexported fields
}

User model (id and name)

Jump to

Keyboard shortcuts

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