public FieldImpl( PlexOfField startPlex, PlexOfField separatorPlex, PlexOfField endPlex ) { if ( startPlex == null ) throw new IllegalArgumentException( "startPlex == null" ); if ( endPlex == null ) throw new IllegalArgumentException( "endPlex == null" ); if ( startPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_BEGIN_MARK ) throw new IllegalArgumentException( "startPlex (" + startPlex + ") is not type of FIELD_BEGIN" ); if ( separatorPlex != null && separatorPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_SEPARATOR_MARK ) throw new IllegalArgumentException( "separatorPlex" + separatorPlex + ") is not type of FIELD_SEPARATOR" ); if ( endPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_END_MARK ) throw new IllegalArgumentException( "endPlex (" + endPlex + ") is not type of FIELD_END" ); this.startPlex = startPlex; this.separatorPlex = separatorPlex; this.endPlex = endPlex; }
public FieldImpl( PlexOfField startPlex, PlexOfField separatorPlex, PlexOfField endPlex ) { if ( startPlex == null ) throw new IllegalArgumentException( "startPlex == null" ); if ( endPlex == null ) throw new IllegalArgumentException( "endPlex == null" ); if ( startPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_BEGIN_MARK ) throw new IllegalArgumentException( "startPlex (" + startPlex + ") is not type of FIELD_BEGIN" ); if ( separatorPlex != null && separatorPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_SEPARATOR_MARK ) throw new IllegalArgumentException( "separatorPlex" + separatorPlex + ") is not type of FIELD_SEPARATOR" ); if ( endPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_END_MARK ) throw new IllegalArgumentException( "endPlex (" + endPlex + ") is not type of FIELD_END" ); this.startPlex = startPlex; this.separatorPlex = separatorPlex; this.endPlex = endPlex; }
public String toString() { return MessageFormat.format( "[{0}, {1}) - FLD - 0x{2}; 0x{3}", getFcStart(), getFcEnd(), Integer.toHexString( 0xff & fld.getBoundaryType() ), Integer.toHexString( 0xff & fld.getFlt() ) ); } }
public String toString() { return String.format(Locale.ROOT, "[%d, %d) - FLD - 0x%x; 0x%x" , getFcStart(), getFcEnd(), fld.getBoundaryType(), fld.getFlt()); } }
if ( startPlexOfField.getFld().getBoundaryType() != FieldDescriptor.FIELD_BEGIN_MARK ) .get( nextNodePositionInList ); switch ( nextPlexOfField.getFld().getBoundaryType() ) .get( endNodePositionInList ); if ( endPlexOfField.getFld().getBoundaryType() != FieldDescriptor.FIELD_END_MARK )
if ( startPlexOfField.getFld().getBoundaryType() != FieldDescriptor.FIELD_BEGIN_MARK ) .get( nextNodePositionInList ); switch ( nextPlexOfField.getFld().getBoundaryType() ) .get( endNodePositionInList ); if ( endPlexOfField.getFld().getBoundaryType() != FieldDescriptor.FIELD_END_MARK )