Class ValueWithPos<E>

  • Type Parameters:
    E - Type of value

    public class ValueWithPos<E>
    extends Object
    bean with value and cursor position.
    Author:
    Manfred Tremmel
    • Constructor Detail

      • ValueWithPos

        public ValueWithPos()
        default constructor.
      • ValueWithPos

        public ValueWithPos​(E pvalue,
                            int ppos)
        constructor initializing fields.
        Parameters:
        pvalue - value entry
        ppos - cursor position
      • ValueWithPos

        public ValueWithPos​(E poriginalValue,
                            E pvalue,
                            int ppos)
        constructor initializing fields.
        Parameters:
        poriginalValue - value before transformation
        pvalue - value entry
        ppos - cursor position
    • Method Detail

      • getOriginalValue

        public final E getOriginalValue()
      • setOriginalValue

        public final void setOriginalValue​(E poriginalValue)
      • getValue

        public final E getValue()
      • setValue

        public final void setValue​(E pvalue)
      • getPos

        public final int getPos()
      • setPos

        public final void setPos​(int ppos)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object