samples.multicostregular.asap.data
Class ASAPShiftSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<ASAPPatternElement>
          extended by samples.multicostregular.asap.data.ASAPShiftSet
All Implemented Interfaces:
Iterable<ASAPPatternElement>, Collection<ASAPPatternElement>, Set<ASAPPatternElement>, ASAPPatternElement

public class ASAPShiftSet
extends AbstractSet<ASAPPatternElement>
implements ASAPPatternElement

Created by IntelliJ IDEA. User: julien Mail: julien.menana{at}emn.fr Date: Dec 17, 2008 Time: 3:28:18 PM


Field Summary
 HashSet<ASAPPatternElement> elem
           
 
Constructor Summary
ASAPShiftSet()
           
 
Method Summary
 boolean add(ASAPPatternElement pe)
           
 int[] getElementValues()
           
 boolean isInPattern(ASAPShift s)
           
 Iterator<ASAPPatternElement> iterator()
           
 int size()
           
 String toRegExp()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Field Detail

elem

public HashSet<ASAPPatternElement> elem
Constructor Detail

ASAPShiftSet

public ASAPShiftSet()
Method Detail

add

public boolean add(ASAPPatternElement pe)
Specified by:
add in interface Collection<ASAPPatternElement>
Specified by:
add in interface Set<ASAPPatternElement>
Overrides:
add in class AbstractCollection<ASAPPatternElement>

iterator

public Iterator<ASAPPatternElement> iterator()
Specified by:
iterator in interface Iterable<ASAPPatternElement>
Specified by:
iterator in interface Collection<ASAPPatternElement>
Specified by:
iterator in interface Set<ASAPPatternElement>
Specified by:
iterator in class AbstractCollection<ASAPPatternElement>

size

public int size()
Specified by:
size in interface Collection<ASAPPatternElement>
Specified by:
size in interface Set<ASAPPatternElement>
Specified by:
size in class AbstractCollection<ASAPPatternElement>

isInPattern

public boolean isInPattern(ASAPShift s)
Specified by:
isInPattern in interface ASAPPatternElement

toRegExp

public String toRegExp()
Specified by:
toRegExp in interface ASAPPatternElement

getElementValues

public int[] getElementValues()
Specified by:
getElementValues in interface ASAPPatternElement


Copyright © 2012. All Rights Reserved.