mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/observation/ObservationMessageService.java
private List<ObservationGen.Observation> createProtoObservationList(final Collection<Observation> observations)
    {
        //List to return
        final List<ObservationGen.Observation> protoObs = new ArrayList<ObservationGen.Observation>();
        for (Observation observ : observations)
        {
            try
            {
                final ObservationGen.Observation protoObsGen = (ObservationGen.Observation)m_Converter.
                    convertToProto(observ);
                protoObs.add(protoObsGen);
            }
            catch (final ObjectConverterException exception)
            {
                m_Logging.error(exception, "Unable to convert a remotely requested observation with UUID %s to a "
                    + "protocol buffer equivalent.", observ.getUuid());
            }
        }
        
        //return list
        return protoObs;
    }
/**
     * Create a list of proto observations from a list of {@link Observation}.
     * @param observations
     *     a collection of observations
     * @return
     *     list of converted observations
     */
Create a list of proto observations from a list of  Observation.
@param observations
a collection of observations
@return
list of converted observations
Create a list of proto observations from a list of Observation . @param observations a collection of observations @return list of converted observations
private List<ObservationGen.Observation> createProtoObservationList(final Collection<Observation> observations)
    {
        final List<ObservationGen.Observation> protoObs = new ArrayList<ObservationGen.Observation>();
        for (Observation observ : observations)
        {
            try
            {
                final ObservationGen.Observation protoObsGen = (ObservationGen.Observation)m_Converter.
                    convertToProto(observ);
                protoObs.add(protoObsGen);
            }
            catch (final ObjectConverterException exception)
            {
                m_Logging.error(exception, "Unable to convert a remotely requested observation with UUID %s to a "
                    + "protocol buffer equivalent.", observ.getUuid());
            }
        }
        return protoObs;
    }
private List < ObservationGen . Observation > createProtoObservationList ( final Collection < Observation > observations ) { final List < ObservationGen . Observation > protoObs = new ArrayList < ObservationGen . Observation > ( ) ; for ( Observation observ : observations ) { try { final ObservationGen . Observation protoObsGen = ( ObservationGen . Observation ) m_Converter . convertToProto ( observ ) ; protoObs . add ( protoObsGen ) ; } catch ( final ObjectConverterException exception ) { m_Logging . error ( exception , "Unable to convert a remotely requested observation with UUID %s to a " + "protocol buffer equivalent." , observ . getUuid ( ) ) ; } } return protoObs ; }
Create a list of proto observations from a list of {@link Observation}.
Create a list of proto observations from a list of { @link Observation } .
//List to return //return list