Skip to content

Instantly share code, notes, and snippets.

@Nan-Zhang
Created November 22, 2013 17:46
Show Gist options
  • Save Nan-Zhang/7603991 to your computer and use it in GitHub Desktop.
Save Nan-Zhang/7603991 to your computer and use it in GitHub Desktop.
boolean.parseBoolean for a string
/* parseBoolean 能解析 string to boolean, 若string = “true” 就为true,反之亦然; conf.get()
返回一个string, 尽管FOLLOWS_GRAPH_BUILD 属性是Boolean */
followingBuild = Boolean.parseBoolean(conf.get(GenomixJobConf.FOLLOWS_GRAPH_BUILD));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment