java.util.Set Scala Examples

The following examples show how to use java.util.Set. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.
Example 1
Source File: IOUtils.scala    From ClassDependenceAnalyser   with GNU General Public License v2.0 5 votes vote down vote up
package com.github.jllk.analyser

import java.io._
import java.util.Set

import scala.collection.JavaConversions._
import scala.collection.mutable


object IOUtils {

  def writeToMainDexList(input: mutable.Set[String]) = {
    require(input != null)
    val output = new PrintWriter(new File("maindexlist.txt"))
    inSafe(output) {
      input.foreach(l => output.println(l.replaceAll("\\.", "/") + ".class"))
    }
  }

  def writeToMainDexList(input: Set[String]) = {
    require(input != null)
    val output = new PrintWriter(new File("maindexlist.txt"))
    inSafe(output) {
      input.foreach(l => output.println(l + ".class"))
    }
  }
}