public final class PSHandlers extends Object
Modifier and Type | Method and Description |
---|---|
static Date |
datetime(String date)
Parse the date as an ISO8601 date time and return the corresponding
Date . |
static Long |
id(String id)
Parse the id and return the corresponding
Long . |
static int |
integer(String i)
Parse the number and return the corresponding
Integer . |
static PSNotification |
notification(String notification)
Parse the notification and return the corresponding
PSNotification instance. |
static PSRole |
role(String role)
Parse the role and return the corresponding
PSRole instance. |
public static Date datetime(String date)
Date
.date
- the date as 'YYYY-MM-DDThh:mm:ss' with optional timezone component.null
public static Long id(String id)
Long
.id
- the IDnull
public static int integer(String i)
Integer
.i
- the integer to parsenull
public static PSNotification notification(String notification)
PSNotification
instance.notification
- the notification to parsenull
Copyright © 2016 Allette Systems. All rights reserved.