001    package railo.runtime.type.comparator;
002    
003    /**
004     * a value of a array with information of old position in array
005     */
006    public final class SortRegister {
007            
008            private Object value;
009            private int oldPosition;
010            
011            /**
012             * constructor of the class
013             * @param pos
014             * @param value
015             */
016            public SortRegister(int pos,Object value) {
017                    this.value=value;
018                    oldPosition=pos;
019            }
020            /**
021             * @return Returns the oldPosition.
022             */
023            public int getOldPosition() {
024                    return oldPosition;
025            }
026            /**
027             * @param oldPosition The oldPosition to set.
028             */
029            public void setOldPosition(int oldPosition) {
030                    this.oldPosition = oldPosition;
031            }
032            /**
033             * @return Returns the value.
034             */
035            public Object getValue() {
036                    return value;
037            }
038            /**
039             * @param value The value to set.
040             */
041            public void setValue(Object value) {
042                    this.value = value;
043            }
044            
045            @Override
046            public String toString() {
047                    return value.toString();
048            }
049    }