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

com.thaiopensource.relaxng.output.xsd.basic.ParticleGroup Maven / Gradle / Ivy

The newest version!
package com.thaiopensource.relaxng.output.xsd.basic;

import com.thaiopensource.relaxng.edit.SourceLocation;

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

public abstract class ParticleGroup extends Particle {
  private final List children;

  public ParticleGroup(SourceLocation location, Annotation annotation, List children) {
    super(location, annotation);
    this.children = Collections.unmodifiableList(children);
  }

  public List getChildren() {
    return children;
  }

  public boolean equals(Object obj) {
    return super.equals(obj) && ((ParticleGroup)obj).children.equals(children);
  }

  public int hashCode() {
    return super.hashCode() ^ getChildren().hashCode();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy