- java.lang.Object
-
- swim.structure.Form<UriPattern>
-
- swim.uri.UriPatternForm
-
public class UriPatternForm extends Form<UriPattern>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UriPattern
cast(Item value)
Converts a structurally typeditem
into a nominally typed Java object.Item
mold(UriPattern value)
Converts a nominally typed Javaobject
into its structurally typed equivalent.Class<UriPattern>
type()
Returns the reifiedClass
of typeT
.UriPattern
unit()
Returns a default–possiblynull
–value of typeT
.-
Methods inherited from class swim.structure.Form
cast, forArray, forBigInteger, forBoolean, forBuiltin, forByte, forByteBuffer, forCharacter, forClass, forClass, forCollection, forDouble, forFloat, forInteger, forItem, forList, forLong, forMap, forMap, forNumber, forSet, forShort, forString, forValue, isBuiltin, mold, tag, tag, unit
-
-
-
-
Method Detail
-
type
public Class<UriPattern> type()
Description copied from class:Form
Returns the reifiedClass
of typeT
.- Specified by:
type
in classForm<UriPattern>
-
unit
public UriPattern unit()
Description copied from class:Form
Returns a default–possiblynull
–value of typeT
. Used as the fallback return value whencoercing
an invalid structural value.- Overrides:
unit
in classForm<UriPattern>
-
mold
public Item mold(UriPattern value)
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent. The returnedItem
must never benull
.- Specified by:
mold
in classForm<UriPattern>
-
cast
public UriPattern cast(Item value)
Description copied from class:Form
Converts a structurally typeditem
into a nominally typed Java object. The passed-initem
is assumed to be non-null
.- Specified by:
cast
in classForm<UriPattern>
-
-