Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: XML Date: Tue, 16 Aug 2016 16:59:45 -0400 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <34f5f605-db80-441c-9730-ceecf445c1a8@googlegroups.com> <0176078c-ab98-4e66-ba3e-b14ee88b58e0@googlegroups.com> <487a50aa-8e4b-460a-9824-bd23c26d4c02@googlegroups.com> <00fae8a8-dc01-435f-9f33-e5a5055d93df@googlegroups.com> <9c174795-1c98-46f0-bbac-179581cd39a2@googlegroups.com> <8cd46667-0abc-4283-b366-d229f99032bd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 16 Aug 2016 20:59:57 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2d081e2f7155c28005d4472f67c2f43d"; logging-data="22241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GFrclnaLG8+x0jrbtqedw" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: <8cd46667-0abc-4283-b366-d229f99032bd@googlegroups.com> Cancel-Lock: sha1:i8Ts7Ks9aeOyvfBVsVF9D4Rnkkw= Xref: csiph.com comp.lang.java.programmer:35367 On 8/16/2016 4:32 PM, Eric Douglas wrote: > > [...] using .getRecords().values().stream().filter(... > Now I just need to figure out the rest. What if the filter returns no records or multiple records? All explained in the Tutorial, to which you've already been pointed. > Is there a more efficient way? Certainly: Assembly code, hand-crafted by a skilled craftsman, will almost certainly run faster and in less memory. -- esosman@comcast-dot-net.invalid The Tooth Fairy has gone high-tech, now pays in Bitecoin.