mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/observation/GuiObservation.java
public List<Integer> findRelatedObservationOfRelation(final RelationshipTypeEnum relation)
    {
        final List<Integer> relatedIndexes = new ArrayList<>();
        final List<ObservationRef> listOfRefs = m_Observation.getRelatedObservations();
        
        for (int i = 0; i < listOfRefs.size(); i++)
        {
            if (listOfRefs.get(i).getRelationship().getRelationshipType() == relation)
            {
                relatedIndexes.add(i);
            }
        }
        
        return relatedIndexes;
    }
/**
     * Method to return all the indexes of observations that match a specific relation type.
     * @param relation
     *  the relationship type enum that is to be determined for
     * @return
     *  the list of indexes of all observation references that match the given relationship type
     */
Method to return all the indexes of observations that match a specific relation type.
@param relation
the relationship type enum that is to be determined for
@return
the list of indexes of all observation references that match the given relationship type
Method to return all the indexes of observations that match a specific relation type . @param relation the relationship type enum that is to be determined for @return the list of indexes of all observation references that match the given relationship type
public List<Integer> findRelatedObservationOfRelation(final RelationshipTypeEnum relation)
    {
        final List<Integer> relatedIndexes = new ArrayList<>();
        final List<ObservationRef> listOfRefs = m_Observation.getRelatedObservations();
        for (int i = 0; i < listOfRefs.size(); i++)
        {
            if (listOfRefs.get(i).getRelationship().getRelationshipType() == relation)
            {
                relatedIndexes.add(i);
            }
        }
        return relatedIndexes;
    }
public List < Integer > findRelatedObservationOfRelation ( final RelationshipTypeEnum relation ) { final List < Integer > relatedIndexes = new ArrayList < > ( ) ; final List < ObservationRef > listOfRefs = m_Observation . getRelatedObservations ( ) ; for ( int i = 0 ; i < listOfRefs . size ( ) ; i ++ ) { if ( listOfRefs . get ( i ) . getRelationship ( ) . getRelationshipType ( ) == relation ) { relatedIndexes . add ( i ) ; } } return relatedIndexes ; }
Method to return all the indexes of observations that match a specific relation type.
Method to return all the indexes of observations that match a specific relation type .