Examples of Map


Examples of java.util.Map

  @Test
  public void testSimpleReverse() {
    A source = new A();
    source.setB(new B());
    Map dest = mapper.map(source, HashMap.class, NULL);
    assertNotNull(dest);
    assertTrue(dest.containsKey("key"));
    assertNotNull(dest.get("key"));
  }
View Full Code Here

Examples of java.util.Map

  @Test
  public void testNullReverse() {
    A source = new A();
    source.setB(null);
    Map dest = mapper.map(source, HashMap.class, NULL);
    assertNotNull(dest);
    assertTrue(dest.containsKey("key"));
    assertNull(dest.get("key"));
  }
View Full Code Here

Examples of javax.help.Map

     * returns an empty String if no content exists.
     */
    private String getMapID(SearchTOCItem item) {
  URL url = item.getURL();
  HelpSet hs = hb.getHelpSet();
  Map map = hs.getCombinedMap();
  ID id = map.getIDFromURL(url);
  if (id == null) {
      return "";
  }
  return id.id;
    }
View Full Code Here

Examples of jfun.yan.Map

  }

  public Component eval() throws Exception {
    checkMandatory("class", of);
    final Component cc = getMandatory();
    return cc.map(new Map(){
      public Object map(Object obj){
        return Boolean.valueOf(ReflectionUtil.isInstance(of, obj));
      }
    }).cast(boolean.class);
  }
View Full Code Here

Examples of jnibwapi.model.Map

   *
   * TODO: figure out how to use BWTA's internal map storage
   */
  public void loadMapData(boolean enableBWTA) {
    String mapName = new String(getMapName());
    map = new Map(getMapWidth(), getMapHeight(), mapName, getMapFileName(), getMapHash(),
        getHeightData(), getBuildableData(), getWalkableData());
    if (!enableBWTA) {
      return;
    }

View Full Code Here

Examples of m33.entities.Map

    entities = new EntityManager();
   
    hero = new Hero();
    hero.load("hero.png");

    level = new Map(entities);
    hero.updateMap(level); // I also set spawn point here

    camera = new Camera();

    hero.setCamera(camera);
View Full Code Here

Examples of map.Map

public class ShowMap extends AbstractCommand{

  @Override
  public String executeCommand(List<String> params) {
    Map actualMap = Game.getInstance().getMap();
    return actualMap.getCharacterMap();
  }
View Full Code Here

Examples of model.Map

 
 
  @Test /* essaye d'écrire dans un fichier */
  public void testWrite()
  {
    Map map = new Map();
   
    FileManager.save(pathToWrite, map);
   
   
    File file = new File(pathToWrite);
View Full Code Here

Examples of net.ftb.data.Map

            }
        });
    }

    public static void cleanUp () {
        Map map = Map.getMap(LaunchFrame.getSelectedMapIndex());
        File tempFolder = new File(OSUtils.getCacheStorageLocation(), MAPS.replace("/", sep) + map.getMapName() + sep);
        for (String file : tempFolder.list()) {
            if (!file.equals(map.getLogoName()) && !file.equals(map.getImageName()) && !file.equalsIgnoreCase("version")) {
                try {
                    FTBFileUtils.delete(new File(tempFolder, file));
                } catch (IOException e) {
                    Logger.logError(e.getMessage(), e);
                }
View Full Code Here

Examples of net.lalotech.struts2.map.components.Map

    public String getBeanName() {
        return "map";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Map(stack, req, res);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.