Example usage for org.apache.thrift Option some

List of usage examples for org.apache.thrift Option some

Introduction

In this page you can find the example usage for org.apache.thrift Option some.

Prototype

public static <T> Some<T> some(T value) 

Source Link

Document

Wrap value in a Some type (NB!

Usage

From source file:com.fjn.helper.frameworkex.apache.thrift.tutorial.Work.java

License:Apache License

public Option<String> getComment() {
    if (this.isSetComment()) {
        return Option.some(this.comment);
    } else {//from w w  w  .j a va2 s  .c o  m
        return Option.none();
    }
}