com.kuka.comm.codec.bytebuffer
Class SegmenterUtil.FoundToken

java.lang.Object
  extended by com.kuka.comm.codec.bytebuffer.SegmenterUtil.FoundToken
Enclosing class:
SegmenterUtil

public static class SegmenterUtil.FoundToken
extends Object

Represents the found token, i.e. its position and the index of the token that has been found.


Constructor Summary
SegmenterUtil.FoundToken(int pos, int tokenIndex)
          Constructs a new instance with the given position and token index.
 
Method Summary
 boolean equals(Object obj)
           
 int getPos()
          Returns the position of the found token.
 int getTokenIndex()
          Returns the index of the found token.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmenterUtil.FoundToken

public SegmenterUtil.FoundToken(int pos,
                                int tokenIndex)
Constructs a new instance with the given position and token index.

Parameters:
pos - the position where the token has been found
tokenIndex - the index of the token that has been found
Method Detail

getPos

public int getPos()
Returns the position of the found token.

Returns:
the position of the found token

getTokenIndex

public int getTokenIndex()
Returns the index of the found token.

Returns:
the index of the found token

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2019. All rights reserved.