microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java
private static CloudQueueMessage getFirstOrNull(final Iterable<CloudQueueMessage> messages) {
        for (final CloudQueueMessage m : messages) {
            return m;
        }

        return null;
    }
private static CloudQueueMessage getFirstOrNull(final Iterable<CloudQueueMessage> messages) {
        for (final CloudQueueMessage m : messages) {
            return m;
        }

        return null;
    }
private static CloudQueueMessage getFirstOrNull ( final Iterable < CloudQueueMessage > messages ) { for ( final CloudQueueMessage m : messages ) { return m ; } return null ; }
Gets the first message from a list of queue messages, if any.

@param messages
The <code>Iterable</code> collection of {@link CloudQueueMessage} objects to get the first message
from.

@return The first {@link CloudQueueMessage} from the list of queue messages, or <code>null</code> if the list is
empty.
Gets the first message from a list of queue messages if any .