You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Jonathan Valliere <jo...@apache.org> on 2018/02/24 23:59:29 UTC

Needs Immutable Iterator

Hi Everyone,

Working on a couple of bugs and needed an Immutable Iterator.  Is there an
Immutable Iterator in any of the existing dependencies or the codebase of
Mina that I should use instead of adding one.

-J

Re: Needs Immutable Iterator

Posted by Christoph John <ch...@macd.com>.
What about Collections.unmodifiableList( list ).iterator() from JDK?

Cheers,
Chris.

On 25/02/18 00:59, Jonathan Valliere wrote:
> Hi Everyone,
>
> Working on a couple of bugs and needed an Immutable Iterator.  Is there an
> Immutable Iterator in any of the existing dependencies or the codebase of
> Mina that I should use instead of adding one.
>
> -J
>

-- 
Christoph John
Development & Support
T +49 241 557080-28
christoph.john@macd.com

MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
www.macd.com

Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663
Geschäftsführer: George Macdonald


Re: Needs Immutable Iterator

Posted by Jonathan Valliere <jo...@emoten.com>.
Thanks for the replies; I ended up figuring out a way to not require it.

On Sat, Feb 24, 2018 at 9:42 PM Emmanuel Lécharny <el...@gmail.com>
wrote:

>
>
> Le 25/02/2018 à 00:59, Jonathan Valliere a écrit :
> > Hi Everyone,
> >
> > Working on a couple of bugs and needed an Immutable Iterator.  Is there
> an
> > Immutable Iterator in any of the existing dependencies or the codebase of
> > Mina that I should use instead of adding one.
>
> We don't have any dependencies in mina-core. The idea was to make it as
> easy as possible to embed it.
>
> As suggested by Christopher, Collections.unmodifiableList( list
> ).iterator() is an option.
>
>
> In which context do you need such a thing ?
>
> --
> Emmanuel Lecharny
>
> Symas.com
> directory.apache.org
>
>

Re: Needs Immutable Iterator

Posted by Emmanuel Lécharny <el...@gmail.com>.

Le 25/02/2018 à 00:59, Jonathan Valliere a écrit :
> Hi Everyone,
> 
> Working on a couple of bugs and needed an Immutable Iterator.  Is there an
> Immutable Iterator in any of the existing dependencies or the codebase of
> Mina that I should use instead of adding one.

We don't have any dependencies in mina-core. The idea was to make it as
easy as possible to embed it.

As suggested by Christopher, Collections.unmodifiableList( list
).iterator() is an option.


In which context do you need such a thing ?

-- 
Emmanuel Lecharny

Symas.com
directory.apache.org