You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <ba...@generationjava.com> on 2003/08/15 02:15:57 UTC
[lang] Why ObjectUtils.Null?
Out of interest, what service does ObjectUtils.Null have over
java.lang.VOID?
Hen
Re: [lang] Why ObjectUtils.Null?
Posted by Henri Yandell <ba...@generationjava.com>.
Shall I claim I was drunk when I asked the question? :)
Thanks,
Hen
On Fri, 15 Aug 2003, Stephen Colebourne wrote:
> Void:
> * The Void class is an uninstantiable placeholder class to hold a
> * reference to the Class object representing the Java keyword
> * void.
>
> ObjectUtils.Null:
> A placeholder to represent null when null cannot be used. Usually used in
> collections (eg.Vector/Hashtable) or in caches (to represent that the search
> has been performed but returned nothing)
>
> Stephen
>
> ----- Original Message -----
> From: "Henri Yandell" <ba...@generationjava.com>
> To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> Sent: Friday, August 15, 2003 1:15 AM
> Subject: [lang] Why ObjectUtils.Null?
>
>
> >
> > Out of interest, what service does ObjectUtils.Null have over
> > java.lang.VOID?
> >
> > Hen
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [lang] Why ObjectUtils.Null?
Posted by Henri Yandell <ba...@generationjava.com>.
Shall I claim I was drunk when I asked the question? :)
Thanks,
Hen
On Fri, 15 Aug 2003, Stephen Colebourne wrote:
> Void:
> * The Void class is an uninstantiable placeholder class to hold a
> * reference to the Class object representing the Java keyword
> * void.
>
> ObjectUtils.Null:
> A placeholder to represent null when null cannot be used. Usually used in
> collections (eg.Vector/Hashtable) or in caches (to represent that the search
> has been performed but returned nothing)
>
> Stephen
>
> ----- Original Message -----
> From: "Henri Yandell" <ba...@generationjava.com>
> To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> Sent: Friday, August 15, 2003 1:15 AM
> Subject: [lang] Why ObjectUtils.Null?
>
>
> >
> > Out of interest, what service does ObjectUtils.Null have over
> > java.lang.VOID?
> >
> > Hen
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
Re: [lang] Why ObjectUtils.Null?
Posted by Stephen Colebourne <sc...@btopenworld.com>.
Void:
* The Void class is an uninstantiable placeholder class to hold a
* reference to the Class object representing the Java keyword
* void.
ObjectUtils.Null:
A placeholder to represent null when null cannot be used. Usually used in
collections (eg.Vector/Hashtable) or in caches (to represent that the search
has been performed but returned nothing)
Stephen
----- Original Message -----
From: "Henri Yandell" <ba...@generationjava.com>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Friday, August 15, 2003 1:15 AM
Subject: [lang] Why ObjectUtils.Null?
>
> Out of interest, what service does ObjectUtils.Null have over
> java.lang.VOID?
>
> Hen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
Re: [lang] Why ObjectUtils.Null?
Posted by Stephen Colebourne <sc...@btopenworld.com>.
Void:
* The Void class is an uninstantiable placeholder class to hold a
* reference to the Class object representing the Java keyword
* void.
ObjectUtils.Null:
A placeholder to represent null when null cannot be used. Usually used in
collections (eg.Vector/Hashtable) or in caches (to represent that the search
has been performed but returned nothing)
Stephen
----- Original Message -----
From: "Henri Yandell" <ba...@generationjava.com>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Friday, August 15, 2003 1:15 AM
Subject: [lang] Why ObjectUtils.Null?
>
> Out of interest, what service does ObjectUtils.Null have over
> java.lang.VOID?
>
> Hen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org