java_util

package
v0.0.0-...-6bc30ac Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

UUID-info

  1. explain dubbo-go-hessian2 strut UUID
  • JavaServer -> create UUID -> GO Client -> UUID struct (PASS)
  • dubbo-go-hessian2 cannot create UUID strut
  • see jdk source code of class:[java.util.UUID] learning how to create UUID struct
  • see https://github.com/satori/go.uuid
  1. explain dubbo-go-hession2 strut locale -java object locale -> go struct Locale (PASS), but currently implemented are objects enumerated in java. See class:java.util.Locale -First convert to struct LocaleHandle and then call GetLocaleFromHandler(localeHandler *LocaleHandle) function to convert to struct Locale -You can use the language.ParseBase("zh-CN") function in the golang.org/x/text/language package to convert the value of locale.String() get go struct and do other things

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locale

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

Locale => java.util.Locale

func GetLocaleFromHandler

func GetLocaleFromHandler(localeHandler *LocaleHandle) *Locale

GetLocaleFromHandler is use LocaleHandle get Locale

func ToLocale

func ToLocale(e LocaleEnum) *Locale

ToLocale get locale from enum

func (*Locale) County

func (locale *Locale) County() string

func (*Locale) Lang

func (locale *Locale) Lang() string

func (*Locale) String

func (locale *Locale) String() string

type LocaleEnum

type LocaleEnum int

LocaleEnum is Locale enumeration value

const (
	ENGLISH LocaleEnum = iota
	FRENCH
	GERMAN
	ITALIAN
	JAPANESE
	KOREAN
	CHINESE
	SIMPLIFIED_CHINESE
	TRADITIONAL_CHINESE
	FRANCE
	GERMANY
	ITALY
	JAPAN
	KOREA
	CHINA
	PRC
	TAIWAN
	UK
	US
	CANADA
	CANADA_FRENCH
	ROOT
)

Locale struct enum

type LocaleHandle

type LocaleHandle struct {
	Value string `hessian:"value"`
}

LocaleHandle => com.alibaba.com.caucho.hessian.io.LocaleHandle object

func (LocaleHandle) JavaClassName

func (LocaleHandle) JavaClassName() string

type UUID

type UUID struct {
	Value string `hessian:"value"`
}

java.util.UUID

func (UUID) JavaClassName

func (UUID) JavaClassName() string

func (UUID) String

func (uuid UUID) String() string

String returns a string object representing this UUID.

Jump to

Keyboard shortcuts

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