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

org.sdmlib.replication.util.LinkedHashSetPO Maven / Gradle / Ivy

Go to download

SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.

There is a newer version: 2.3.2341
Show newest version
package org.sdmlib.replication.util;

import java.util.LinkedHashSet;

import org.sdmlib.models.pattern.PatternObject;

public class LinkedHashSetPO extends PatternObject
{

    public LinkedHashSetSet allMatches()
   {
      this.setDoAllMatches(true);
      
      LinkedHashSetSet matches = new LinkedHashSetSet();

      while (this.getPattern().getHasMatch())
      {
         matches.add((LinkedHashSet) this.getCurrentMatch());
         
         this.getPattern().findMatch();
      }
      
      return matches;
   }


   public LinkedHashSetPO(){
      newInstance(org.sdmlib.replication.util.CreatorCreator.createIdMap("PatternObjectType"));
   }

   public LinkedHashSetPO(LinkedHashSet... hostGraphObject) {
      if(hostGraphObject==null || hostGraphObject.length<1){
         return ;
      }
      newInstance(org.sdmlib.replication.util.CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy