basic

package
v0.0.0-...-949afd0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesHashCode

func BytesHashCode(b []byte) int32

func Float32HashCode

func Float32HashCode(f float32) int32

func Float64HashCode

func Float64HashCode(f float64) int32

func HashCode

func HashCode(a ...Object) int32

针对基础类的HashCode,返回int32的code值

func Int16HashCode

func Int16HashCode(i int16) int32

func Int32HashCode

func Int32HashCode(i int32) int32

func Int64HashCode

func Int64HashCode(i int64) int32

func Int8HashCode

func Int8HashCode(i int8) int32

func IntHashCode

func IntHashCode(i int) int32

func NullT

func NullT[T Object]() T

func NumString

func NumString[T Numbers](t T) string

转换num为 string

func ObjectEqual

func ObjectEqual(a, b Object) bool

*

  • 比较两个objec是否相同

func ObjectHashCode

func ObjectHashCode(value Object) int32

func PointerEqual

func PointerEqual(a, b Object) bool

比较两个指针是否相同

func StringHashCode

func StringHashCode(s string) int32

func UInt16HashCode

func UInt16HashCode(i uint16) int32

func UInt32HashCode

func UInt32HashCode(i uint32) int32

func UInt64HashCode

func UInt64HashCode(i uint64) int32

func UInt8HashCode

func UInt8HashCode(i uint8) int32

func UIntHashCode

func UIntHashCode(i uint) int32

Types

type ComObj

type ComObj interface {
	comparable
}

type Consumer

type Consumer[T Object] interface {

	/**
	 * Performs this operation on the given argument.
	 *
	 * @param t the input argument
	 */
	Accept(t T)
}

type Enum

type Enum interface {
	~int8
}

type HashCodeAble

type HashCodeAble interface {
	HashCode() int32
}

type Numbers

type Numbers interface {
	~byte | ~int8 | ~int16 | ~uint16 | ~int | ~uint | ~int32 | ~uint32 | ~int64 | ~uint64
}

type Object

type Object interface{}

定义抽象类跟类

type Runnable

type Runnable interface {
	Run() int32
}

执行

Jump to

Keyboard shortcuts

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