
org.sdmlib.replication.util.ThreadPO Maven / Gradle / Ivy
package org.sdmlib.replication.util;
import org.sdmlib.models.pattern.PatternObject;
public class ThreadPO extends PatternObject
{
public ThreadSet allMatches()
{
this.setDoAllMatches(true);
ThreadSet matches = new ThreadSet();
while (this.getPattern().getHasMatch())
{
matches.add((Thread) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
public ThreadPO(){
newInstance(CreatorCreator.createIdMap("PatternObjectType"));
}
public ThreadPO(Thread... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
}
public ThreadPO(String modifier)
{
this.setModifier(modifier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy