Jack,

can you provide some more context?
Where do you want to use it and what is what you are trying to achieve?

Thanks a lot

Michael

Am 11.11.2011 um 11:51 schrieb jbeau:

> Hello all,
> 
> I stuck with returning null in underlyingObjectToObject.
> 
> First of all, I have this class:
> 
> public class ClosableIterableAdapter<I, T> extends IterableWrapper<I, T>
> implements IClosableIterable {
> 
>    private final ClosableIterable<T> closableNodeIterable;
> 
>    public static <IF, TY> ClosableIterableAdapter<IF, TY>
> from(ClosableIterable<TY> it) {
>        return new ClosableIterableAdapter<IF, TY>(it);
>    }
> 
>    public ClosableIterableAdapter(ClosableIterable<T> closableNodeIterable)
> {
>        super(closableNodeIterable);
>        this.closableNodeIterable = closableNodeIterable;   
>    }
> 
>    @SuppressWarnings("unchecked")
>    @Override
>    protected I underlyingObjectToObject(T object) {
>        // if (true) return (I) object;
>        // if (false) return null;
>    }
> 
> So long ... it works. But the returned null values destroy my resulting
> collection. How can I remove them? I mean how I can avoid to return them?
> 
> Thx a lot for every hint.
> Jack
> 
> 
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/overriding-protected-I-underlyingObjectToObject-T-object-return-null-tp3499362p3499362.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to