SergOmarov

Untitled

Sep 24th, 2017
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def orDefault[T](value:T,default:T)=
  2.   if(value==null) default
  3.   else value
  4.  
  5. val lore=orDefault(meta.getLore,new util.ArrayList[String]())
RAW Paste Data