library/src/main/java/com/kdgregory/aws/utils/kinesis/KinesisUtil.java
/**
     *  A utility function that transforms a list of shards into a map of
     *  shards keyed by the shard ID. This is used internally and may be
     *  generally useful.
     */
A utility function that transforms a list of shards into a map of
shards keyed by the shard ID. This is used internally and may be
generally useful.
A utility function that transforms a list of shards into a map of shards keyed by the shard ID . This is used internally and may be generally useful .
public static Map<String,Shard> toMapById(Collection<Shard> shards)
    {
        Map<String,Shard> result = new HashMap<String,Shard>();
        for (Shard shard : shards)
        {
            result.put(shard.getShardId(), shard);
        }
        return result;
    }
public static Map < String , Shard > toMapById ( Collection < Shard > shards ) { Map < String , Shard > result = new HashMap < String , Shard > ( ) ; for ( Shard shard : shards ) { result . put ( shard . getShardId ( ) , shard ) ; } return result ; }
A utility function that transforms a list of shards into a map of
  shards keyed by the shard ID.
A utility function that transforms a list of shards into a map of shards keyed by the shard ID .