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

org.robolectric.res.PreferenceNode Maven / Gradle / Ivy

There is a newer version: 3.4-rc2
Show newest version
package org.robolectric.res;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class PreferenceNode {
  private final String name;
  private final List attributes;
  private final List children = new ArrayList<>();

  public PreferenceNode(String name, List attributes) {
    this.name = name;
    this.attributes = attributes;
  }

  public String getName() {
    return name;
  }

  public List getAttributes() {
    return attributes;
  }

  public List getChildren() {
    return Collections.unmodifiableList(children);
  }

  public void addChild(PreferenceNode prefNode) {
    children.add(prefNode);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy