All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jedi.example.MapExample Maven / Gradle / Ivy

package jedi.example;

import java.util.HashMap;
import java.util.Map;

import jedi.option.OptionMatcher;
import jedi.option.Options;

public class MapExample {

	public static void main(String[] args) {
		Map map = new HashMap();
		map.put("a", 1);
		
		Options.get(map, "a").match(new OptionMatcher() {
		
			public void caseNone() {
				System.out.println("oops, shouldn't be here");
			}

			public void caseSome(Integer value) {
				System.out.println("matched " + value);
			}
		});
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy