PgInet class
Valor dos tipos inet e cidr: endereço IPv4/IPv6 com tamanho de
prefixo (máscara).
- Implemented types
Constructors
- PgInet(InternetAddress address, int prefixLength, {bool isCidr = false})
Properties
- address → InternetAddress
-
Endereço.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isCidr → bool
-
Indica se o valor é do tipo
cidr(rede) em vez deinet.final - maxPrefixLength → int
-
Quantidade máxima de bits do endereço (32 ou 128).
no setter
- postgresTypeName → String
-
Nome do tipo usado no cast quando o valor é inserido no SQL (por exemplo
interval), ounullpara não fazer cast.no setteroverride - prefixLength → int
-
Tamanho do prefixo, em bits (32/128 = endereço de host).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPostgresText(
) → String -
Texto aceito pela função de entrada do tipo no PostgreSQL.
override
-
toString(
) → String -
Texto no formato do PostgreSQL (
network_out):inetomite o prefixo quando ele é o máximo;cidrsempre o mostra.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override