Swift is smart library to support java collection