Package edu.jas.poly

Class Overlap

  • All Implemented Interfaces:
    java.io.Serializable

    public class Overlap
    extends java.lang.Object
    implements java.io.Serializable
    Container for overlap words. A container of four words l1, r1, l2, r2.
    Author:
    Heinz Kredel
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Overlap​(Word l1, Word r1, Word l2, Word r2)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isOverlap​(Word u, Word v)
      Is word overlap.
      java.lang.String toString()
      Get the string representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • isOverlap

        public boolean isOverlap​(Word u,
                                 Word v)
        Is word overlap.
        Parameters:
        u - word
        v - word
        Returns:
        true if l1 * u * r1 = l2 * v * r2, else false.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()