play.libs.F.Some() - java examples

Here are the examples of the java api play.libs.F.Some() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

17 View Complete Implementation : ResourceParam.java
Copyright Apache License 2.0
Author : naver
@Override
public F.Option<ResourceParam> bind(String key, Map<String, String[]> data) {
    String type = data.get(key + ".type")[0];
    String id = data.get(key + ".id")[0];
    Resource result = Resource.get(ResourceType.getValue(type), id);
    if (result != null) {
        return F.Some(ResourceParam.get(result));
    } else {
        return new F.None<>();
    }
}