@Test public void testGetSectionRowNumberColumnWhenInformationItemPresent() { relation.getColumn().add(new InformationItem()); assertEquals(RelationSection.ROW_INDEX, getSection(relation, 0)); }
public static RelationSection getSection(final Relation relation, final int columnIndex) { if (columnIndex < 0) { return RelationSection.NONE; } final int iiColumnCount = relation.getColumn().size(); int _columnIndex = columnIndex; if ((_columnIndex = _columnIndex - ROW_INDEX_COLUMN_COUNT) < 0) { return RelationSection.ROW_INDEX; } if ((_columnIndex - iiColumnCount) < 0) { return RelationSection.INFORMATION_ITEM; } return RelationSection.NONE; }
RelationUIModelMapperHelper { public static RelationSection getSection(final Relation relation, final int columnIndex) { if (columnIndex < 0) { return RelationSection.NONE; } final int iiColumnCount = relation.getColumn().size(); int _columnIndex = columnIndex; if ((_columnIndex = _columnIndex - ROW_INDEX_COLUMN_COUNT) < 0) { return RelationSection.ROW_INDEX; } if ((_columnIndex - iiColumnCount) < 0) { return RelationSection.INFORMATION_ITEM; } return RelationSection.NONE; } }
RelationUIModelMapperHelper { public static RelationSection getSection(final Relation relation, final int columnIndex) { if (columnIndex < 0) { return RelationSection.NONE; } final int iiColumnCount = relation.getColumn().size(); int _columnIndex = columnIndex; if ((_columnIndex = _columnIndex - ROW_INDEX_COLUMN_COUNT) < 0) { return RelationSection.ROW_INDEX; } if ((_columnIndex - iiColumnCount) < 0) { return RelationSection.INFORMATION_ITEM; } return RelationSection.NONE; }  }
RelationUIModelMapperHelper { public static RelationSection getSection(final Relation relation, final int columnIndex) { if (columnIndex < 0) { return RelationSection.NONE; } final int iiColumnCount = relation.getColumn().size(); int _columnIndex = columnIndex; if ((_columnIndex = _columnIndex - ROW_INDEX_COLUMN_COUNT) < 0) { return RelationSection.ROW_INDEX; } if ((_columnIndex - iiColumnCount) < 0) { return RelationSection.INFORMATION_ITEM; } return RelationSection.NONE; }  static RelationSection getSection(final Relation relation,
                                             final int columnIndex); static int getInformationItemIndex(final Relation relation,
                                              final int columnIndex); }
RelationUIModelMapperHelper { public static RelationSection getSection(final Relation relation, final int columnIndex) { if (columnIndex < 0) { return RelationSection.NONE; } final int iiColumnCount = relation.getColumn().size(); int _columnIndex = columnIndex; if ((_columnIndex = _columnIndex - ROW_INDEX_COLUMN_COUNT) < 0) { return RelationSection.ROW_INDEX; } if ((_columnIndex - iiColumnCount) < 0) { return RelationSection.INFORMATION_ITEM; } return RelationSection.NONE; }  static RelationSection getSection(final Relation relation,
                                             final int columnIndex); static int getInformationItemIndex(final Relation relation,
                                              final int columnIndex); static final int ROW_INDEX_COLUMN_COUNT; }