com.github.kongchen.swagger.docgen.util.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-maven-plugin Show documentation
Show all versions of swagger-maven-plugin Show documentation
A maven build plugin which helps you generate API document during build phase
package com.github.kongchen.swagger.docgen.util;
import scala.Option;
/**
* Created with IntelliJ IDEA.
* User: kongchen
* Date: 1/21/14
*/
public class Utils {
public static String getStrInOption(Option scalaStr ) {
if (scalaStr.isEmpty()) return null;
return scalaStr.get();
}
}