list

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ANYLIST_DEFAULT_CAPACITY = 10
	ANYLIST_MAX_SIZE         = math.MaxInt32 - 8

	ANYLIST_INT    = 1
	ANYLIST_LONG   = 2
	ANYLIST_FLOAT  = 3
	ANYLIST_DOUBLE = 4
	ANYLIST_STRING = 5
)

Variables

This section is empty.

Functions

func CompareChild

func CompareChild(child AnyList, ord bool, i1 int, i2 int) int

func DoubleListMain

func DoubleListMain()

func FloatListMain

func FloatListMain()

func IntListMain

func IntListMain()

func LongListMain

func LongListMain()

func StringListMain

func StringListMain()

Types

type AnyList

type AnyList interface {
	GetType() byte

	SetInt(i, v int)
	SetFloat(i int, v float32)
	SetLong(i int, v int64)
	SetDouble(i int, v float64)
	SetString(i int, v string)

	AddInt(v int)
	AddFloat(v float32)
	AddLong(v int64)
	AddDouble(v float64)
	AddString(v string)

	GetInt(i int) int
	GetFloat(i int) float32
	GetDouble(i int) float64
	GetLong(i int) int64
	GetString(i int) string
	GetObject(i int) interface{}
	GetValue(i int) value.Value

	Write(out *io.DataOutputX)
	Read(in *io.DataInputX)

	Size() int

	Sorting(asc bool) []int
	SortingAnyList(asc bool, child AnyList, childAsc bool) []int
	Filtering(index []int) AnyList
}

type DoubleList

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

func NewDoubleList

func NewDoubleList(initialCapa int) *DoubleList

func NewDoubleListDefault

func NewDoubleListDefault() *DoubleList

func (*DoubleList) AddAll

func (this *DoubleList) AddAll(other *DoubleList)

func (*DoubleList) AddAllArray

func (this *DoubleList) AddAllArray(other []float64)

func (*DoubleList) AddDouble

func (this *DoubleList) AddDouble(v float64)

func (*DoubleList) AddFloat

func (this *DoubleList) AddFloat(v float32)

func (*DoubleList) AddInt

func (this *DoubleList) AddInt(v int)

func (*DoubleList) AddLong

func (this *DoubleList) AddLong(v int64)

func (*DoubleList) AddString

func (this *DoubleList) AddString(v string)

func (*DoubleList) Filtering

func (this *DoubleList) Filtering(index []int) AnyList

func (*DoubleList) GetDouble

func (this *DoubleList) GetDouble(i int) float64

func (*DoubleList) GetFloat

func (this *DoubleList) GetFloat(i int) float32

func (*DoubleList) GetInt

func (this *DoubleList) GetInt(i int) int

func (*DoubleList) GetLong

func (this *DoubleList) GetLong(i int) int64

func (*DoubleList) GetObject

func (this *DoubleList) GetObject(i int) interface{}

func (*DoubleList) GetString

func (this *DoubleList) GetString(i int) string

func (*DoubleList) GetType

func (this *DoubleList) GetType() byte

func (*DoubleList) GetValue

func (this *DoubleList) GetValue(i int) value.Value

func (*DoubleList) Read

func (this *DoubleList) Read(in *io.DataInputX)

func (*DoubleList) SetDouble

func (this *DoubleList) SetDouble(i int, v float64)

func (*DoubleList) SetFloat

func (this *DoubleList) SetFloat(i int, v float32)

func (*DoubleList) SetInt

func (this *DoubleList) SetInt(i, v int)

func (*DoubleList) SetLong

func (this *DoubleList) SetLong(i int, v int64)

func (*DoubleList) SetString

func (this *DoubleList) SetString(i int, v string)

func (*DoubleList) Size

func (this *DoubleList) Size() int

func (*DoubleList) Sort

func (this *DoubleList) Sort()

func (*DoubleList) Sorting

func (this *DoubleList) Sorting(asc bool) []int

func (*DoubleList) SortingAnyList

func (this *DoubleList) SortingAnyList(asc bool, child AnyList, childAsc bool) []int

func (*DoubleList) ToArray

func (this *DoubleList) ToArray() []float64

func (*DoubleList) ToString

func (this *DoubleList) ToString() string

func (*DoubleList) Write

func (this *DoubleList) Write(out *io.DataOutputX)

type DoubleListKeyVal

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

type DoubleListSortable

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

func (DoubleListSortable) Len

func (this DoubleListSortable) Len() int

func (DoubleListSortable) Less

func (this DoubleListSortable) Less(i, j int) bool

func (DoubleListSortable) Swap

func (this DoubleListSortable) Swap(i, j int)

type FloatList

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

func NewFloatList

func NewFloatList(initialCapa int) *FloatList

func NewFloatListDefault

func NewFloatListDefault() *FloatList

func (*FloatList) AddAll

func (this *FloatList) AddAll(other *FloatList)

func (*FloatList) AddAllArray

func (this *FloatList) AddAllArray(other []float32)

func (*FloatList) AddDouble

func (this *FloatList) AddDouble(v float64)

func (*FloatList) AddFloat

func (this *FloatList) AddFloat(v float32)

func (*FloatList) AddInt

func (this *FloatList) AddInt(v int)

func (*FloatList) AddLong

func (this *FloatList) AddLong(v int64)

func (*FloatList) AddString

func (this *FloatList) AddString(v string)

func (*FloatList) Filtering

func (this *FloatList) Filtering(index []int) AnyList

func (*FloatList) GetDouble

func (this *FloatList) GetDouble(i int) float64

func (*FloatList) GetFloat

func (this *FloatList) GetFloat(i int) float32

func (*FloatList) GetInt

func (this *FloatList) GetInt(i int) int

func (*FloatList) GetLong

func (this *FloatList) GetLong(i int) int64

func (*FloatList) GetObject

func (this *FloatList) GetObject(i int) interface{}

func (*FloatList) GetString

func (this *FloatList) GetString(i int) string

func (*FloatList) GetType

func (this *FloatList) GetType() byte

func (*FloatList) GetValue

func (this *FloatList) GetValue(i int) value.Value

func (*FloatList) Read

func (this *FloatList) Read(in *io.DataInputX)

func (*FloatList) SetDouble

func (this *FloatList) SetDouble(i int, v float64)

func (*FloatList) SetFloat

func (this *FloatList) SetFloat(i int, v float32)

func (*FloatList) SetInt

func (this *FloatList) SetInt(i, v int)

func (*FloatList) SetLong

func (this *FloatList) SetLong(i int, v int64)

func (*FloatList) SetString

func (this *FloatList) SetString(i int, v string)

func (*FloatList) Size

func (this *FloatList) Size() int

func (*FloatList) Sort

func (this *FloatList) Sort()

func (*FloatList) Sorting

func (this *FloatList) Sorting(asc bool) []int

func (*FloatList) SortingAnyList

func (this *FloatList) SortingAnyList(asc bool, child AnyList, childAsc bool) []int

func (*FloatList) ToArray

func (this *FloatList) ToArray() []float32

func (*FloatList) ToString

func (this *FloatList) ToString() string

func (*FloatList) Write

func (this *FloatList) Write(out *io.DataOutputX)

type FloatListKeyVal

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

type FloatListSortable

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

func (FloatListSortable) Len

func (this FloatListSortable) Len() int

func (FloatListSortable) Less

func (this FloatListSortable) Less(i, j int) bool

func (FloatListSortable) Swap

func (this FloatListSortable) Swap(i, j int)

type IntList

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

func NewIntList

func NewIntList(initialCapa int) *IntList

func NewIntListDefault

func NewIntListDefault() *IntList

func (*IntList) AddAll

func (this *IntList) AddAll(other *IntList)

func (*IntList) AddAllArray

func (this *IntList) AddAllArray(other []int)

func (*IntList) AddDouble

func (this *IntList) AddDouble(v float64)

func (*IntList) AddFloat

func (this *IntList) AddFloat(v float32)

func (*IntList) AddInt

func (this *IntList) AddInt(v int)

func (*IntList) AddLong

func (this *IntList) AddLong(v int64)

func (*IntList) AddString

func (this *IntList) AddString(v string)

func (*IntList) Filtering

func (this *IntList) Filtering(index []int) AnyList

func (*IntList) GetDouble

func (this *IntList) GetDouble(i int) float64

func (*IntList) GetFloat

func (this *IntList) GetFloat(i int) float32

func (*IntList) GetInt

func (this *IntList) GetInt(i int) int

func (*IntList) GetLong

func (this *IntList) GetLong(i int) int64

func (*IntList) GetObject

func (this *IntList) GetObject(i int) interface{}

func (*IntList) GetString

func (this *IntList) GetString(i int) string

func (*IntList) GetType

func (this *IntList) GetType() byte

func (*IntList) GetValue

func (this *IntList) GetValue(i int) value.Value

func (*IntList) Read

func (this *IntList) Read(in *io.DataInputX)

func (*IntList) SetDouble

func (this *IntList) SetDouble(i int, v float64)

func (*IntList) SetFloat

func (this *IntList) SetFloat(i int, v float32)

func (*IntList) SetInt

func (this *IntList) SetInt(i, v int)

func (*IntList) SetLong

func (this *IntList) SetLong(i int, v int64)

func (*IntList) SetString

func (this *IntList) SetString(i int, v string)

func (*IntList) Size

func (this *IntList) Size() int

func (*IntList) Sorting

func (this *IntList) Sorting(asc bool) []int

func (*IntList) SortingAnyList

func (this *IntList) SortingAnyList(asc bool, child AnyList, childAsc bool) []int

func (*IntList) ToArray

func (this *IntList) ToArray() []int

func (*IntList) ToString

func (this *IntList) ToString() string

func (*IntList) Write

func (this *IntList) Write(out *io.DataOutputX)

type IntListKeyVal

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

type IntListSortable

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

func (IntListSortable) Len

func (this IntListSortable) Len() int

func (IntListSortable) Less

func (this IntListSortable) Less(i, j int) bool

func (IntListSortable) Swap

func (this IntListSortable) Swap(i, j int)

type LinkedList

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

func NewLinkedList

func NewLinkedList() *LinkedList

func (*LinkedList) Add

func (o *LinkedList) Add(v interface{}) bool

func (*LinkedList) AddFirst

func (o *LinkedList) AddFirst(v interface{})

func (*LinkedList) AddLast

func (o *LinkedList) AddLast(v interface{})

func (*LinkedList) Clear

func (o *LinkedList) Clear()

func (*LinkedList) GetFirst

func (o *LinkedList) GetFirst() *LinkedListEntity

func (*LinkedList) GetLast

func (o *LinkedList) GetLast() *LinkedListEntity

func (*LinkedList) GetNext

func (*LinkedList) PutBefore

func (o *LinkedList) PutBefore(v interface{}, succ *LinkedListEntity) *LinkedListEntity

func (*LinkedList) Remove

func (o *LinkedList) Remove(x *LinkedListEntity) interface{}

func (*LinkedList) RemoveFirst

func (o *LinkedList) RemoveFirst() interface{}

func (*LinkedList) RemoveLast

func (o *LinkedList) RemoveLast() interface{}

func (*LinkedList) Size

func (o *LinkedList) Size() int

func (*LinkedList) ToArray

func (o *LinkedList) ToArray() []interface{}

func (*LinkedList) ToString

func (o *LinkedList) ToString() string

type LinkedListEntity

type LinkedListEntity struct {
	Value interface{}
	// contains filtered or unexported fields
}

func (*LinkedListEntity) ToString

func (e *LinkedListEntity) ToString() string

type LongList

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

func NewLongList

func NewLongList(initialCapa int) *LongList

func NewLongListDefault

func NewLongListDefault() *LongList

func (*LongList) AddAll

func (this *LongList) AddAll(other *LongList)

func (*LongList) AddAllArray

func (this *LongList) AddAllArray(other []int64)

func (*LongList) AddDouble

func (this *LongList) AddDouble(v float64)

func (*LongList) AddFloat

func (this *LongList) AddFloat(v float32)

func (*LongList) AddInt

func (this *LongList) AddInt(v int)

func (*LongList) AddLong

func (this *LongList) AddLong(v int64)

func (*LongList) AddString

func (this *LongList) AddString(v string)

func (*LongList) Filtering

func (this *LongList) Filtering(index []int) AnyList

func (*LongList) GetDouble

func (this *LongList) GetDouble(i int) float64

func (*LongList) GetFloat

func (this *LongList) GetFloat(i int) float32

func (*LongList) GetInt

func (this *LongList) GetInt(i int) int

func (*LongList) GetLong

func (this *LongList) GetLong(i int) int64

func (*LongList) GetObject

func (this *LongList) GetObject(i int) interface{}

func (*LongList) GetString

func (this *LongList) GetString(i int) string

func (*LongList) GetType

func (this *LongList) GetType() byte

func (*LongList) GetValue

func (this *LongList) GetValue(i int) value.Value

func (*LongList) Read

func (this *LongList) Read(in *io.DataInputX)

func (*LongList) SetDouble

func (this *LongList) SetDouble(i int, v float64)

func (*LongList) SetFloat

func (this *LongList) SetFloat(i int, v float32)

func (*LongList) SetInt

func (this *LongList) SetInt(i, v int)

func (*LongList) SetLong

func (this *LongList) SetLong(i int, v int64)

func (*LongList) SetString

func (this *LongList) SetString(i int, v string)

func (*LongList) Size

func (this *LongList) Size() int

func (*LongList) Sort

func (this *LongList) Sort()

func (*LongList) Sorting

func (this *LongList) Sorting(asc bool) []int

func (*LongList) SortingAnyList

func (this *LongList) SortingAnyList(asc bool, child AnyList, childAsc bool) []int

func (*LongList) ToArray

func (this *LongList) ToArray() []int64

func (*LongList) ToString

func (this *LongList) ToString() string

func (*LongList) Write

func (this *LongList) Write(out *io.DataOutputX)

type LongListKeyVal

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

type LongListSortable

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

func (LongListSortable) Len

func (this LongListSortable) Len() int

func (LongListSortable) Less

func (this LongListSortable) Less(i, j int) bool

func (LongListSortable) Swap

func (this LongListSortable) Swap(i, j int)

type StringList

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

func NewStringList

func NewStringList(initialCapa int) *StringList

func NewStringListDefault

func NewStringListDefault() *StringList

func (*StringList) AddAll

func (this *StringList) AddAll(other *StringList)

func (*StringList) AddAllArray

func (this *StringList) AddAllArray(other []string)

func (*StringList) AddDouble

func (this *StringList) AddDouble(v float64)

func (*StringList) AddFloat

func (this *StringList) AddFloat(v float32)

func (*StringList) AddInt

func (this *StringList) AddInt(v int)

func (*StringList) AddLong

func (this *StringList) AddLong(v int64)

func (*StringList) AddString

func (this *StringList) AddString(v string)

func (*StringList) Filtering

func (this *StringList) Filtering(index []int) AnyList

func (*StringList) GetDouble

func (this *StringList) GetDouble(i int) float64

func (*StringList) GetFloat

func (this *StringList) GetFloat(i int) float32

func (*StringList) GetInt

func (this *StringList) GetInt(i int) int

func (*StringList) GetLong

func (this *StringList) GetLong(i int) int64

func (*StringList) GetObject

func (this *StringList) GetObject(i int) interface{}

func (*StringList) GetString

func (this *StringList) GetString(i int) string

func (*StringList) GetType

func (this *StringList) GetType() byte

func (*StringList) GetValue

func (this *StringList) GetValue(i int) value.Value

func (*StringList) Read

func (this *StringList) Read(in *io.DataInputX)

func (*StringList) SetDouble

func (this *StringList) SetDouble(i int, v float64)

func (*StringList) SetFloat

func (this *StringList) SetFloat(i int, v float32)

func (*StringList) SetInt

func (this *StringList) SetInt(i, v int)

func (*StringList) SetLong

func (this *StringList) SetLong(i int, v int64)

func (*StringList) SetString

func (this *StringList) SetString(i int, v string)

func (*StringList) Size

func (this *StringList) Size() int

func (*StringList) Sort

func (this *StringList) Sort()

func (*StringList) Sorting

func (this *StringList) Sorting(asc bool) []int

func (*StringList) SortingAnyList

func (this *StringList) SortingAnyList(asc bool, child AnyList, childAsc bool) []int

func (*StringList) ToArray

func (this *StringList) ToArray() []string

func (*StringList) ToString

func (this *StringList) ToString() string

func (*StringList) Write

func (this *StringList) Write(out *io.DataOutputX)

type StringListKeyVal

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

type StringListSortable

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

func (StringListSortable) Len

func (this StringListSortable) Len() int

func (StringListSortable) Less

func (this StringListSortable) Less(i, j int) bool

func (StringListSortable) Swap

func (this StringListSortable) Swap(i, j int)

Jump to

Keyboard shortcuts

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