Over a million developers have joined DZone.

Eclipse Template Example

DZone's Guide to

Eclipse Template Example

Free Resource
// Template to generate accessors to a List in the current class

	public Integer get${F:field(java.util.List)}Length() {
		return ${f:field(java.util.List)}.size();
	public void add${F:field(java.util.List)}(${t:elemType(f)} ${f:field(java.util.List)}) {
	public boolean remove${F:field(java.util.List)}(Integer index) {
		return this.${f:field(java.util.List)}.remove(index);
	public ${t:elemType(f)} get${F:field(java.util.List)}(Integer index) {
		return this.${f:field(java.util.List)}.get(index);


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}