Browse Source
Added a controll to the commandline. Tweaked a few other portions of the code. Need to fix that part where everything is printed to the console when running AppCLI
master
Added a controll to the commandline. Tweaked a few other portions of the code. Need to fix that part where everything is printed to the console when running AppCLI
master
Drew Short
11 years ago
5 changed files with 75 additions and 10 deletions
-
41src/main/java/com/sothr/imagetools/AppCLI.java
-
1src/main/java/com/sothr/imagetools/AppConfig.java
-
13src/main/scala/com/sothr/imagetools/Engine.scala
-
17src/main/scala/com/sothr/imagetools/image/ImageCache.scala
-
1src/main/scala/com/sothr/imagetools/util/PropertiesService.scala
@ -0,0 +1,17 @@ |
|||||
|
package com.sothr.imagetools.image |
||||
|
|
||||
|
import scala.collection.mutable |
||||
|
|
||||
|
/** |
||||
|
* Created by drew on 1/26/14. |
||||
|
*/ |
||||
|
class ImageCache { |
||||
|
|
||||
|
private val cache = new mutable.HashMap[String, Image]() |
||||
|
|
||||
|
def contains(imagePath:String) = cache.contains(imagePath) |
||||
|
def get(imagePath:String) = cache(imagePath) |
||||
|
def add(imagePath:String, image:Image) = cache.put(imagePath,image) |
||||
|
def size:Int = cache.size |
||||
|
|
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue