Back to project page wigle-wifi-wardriving-badfork.
The source code is released under:
/* * Copyright (c) 2010-2012, Andrew Carra, Robert Hagemann, Hugh Kennedy * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
If you think the Android project wigle-wifi-wardriving-badfork listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.wigle.wigleandroid; // w w w. ja va2 s .c om import java.util.HashMap; import java.util.Map; public enum NetworkType { WIFI("W"), GSM("G"), CDMA("C"); private static final Map<String,NetworkType> types = new HashMap<String,NetworkType>(); static { for( NetworkType type : NetworkType.values() ) { types.put( type.getCode(), type ); } } private final String code; private NetworkType(final String code) { this.code = code; } public String getCode() { return code; } public static NetworkType typeForCode(final String code) { return types.get(code); } }