commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack, Paul" <pj...@sfaf.org>
Subject RE: [lang][collections] Utils having a public constructor
Date Tue, 13 Aug 2002 17:12:42 GMT
> > > > Would the Velocity folks mind including something like this in 
> > > > Velocity:
> > > > 
> > > >     public class Util extends Object {
> > > > 
> > > >         final public StringUtils string = null;
> > > >         final public ObjectUtils object = null;
> > > >         final public CollectionUtils collection = null;
> > > > 
> > > >         public Util() {
> > > >         }
> > > > 
> > > >     }

Hm.  Would this work?

public class Util extends Object {

    public Util() {
    }

    public StringUtils string() {
        return null;
    }

    public ObjectUtils object() {
        return null;
    }

    public CollectionUtils collection() {
        return null;
    }

}

Then velocity pages could say $foo.string().method() yes?

I really am just trying to help.

-Paul

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message