public class UserDefinedFieldContainer extends Object implements Collection<UserDefinedField>
Constructor and Description |
---|
UserDefinedFieldContainer(CustomFieldContainer customFields)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(UserDefinedField field) |
boolean |
addAll(Collection<? extends UserDefinedField> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
forEach(Consumer<? super UserDefinedField> action) |
Collection<UserDefinedField> |
getAssignmentFields()
Retrieve a collection of resource assignment user defined fields.
|
UserDefinedField |
getByUniqueID(Integer id)
Retrieve a user defined field by its Unique ID.
|
UserDefinedField |
getOrCreateAssignmentField(Integer id,
Function<Integer,UserDefinedField> createFunction)
Retrieve or create a user defined field by ID.
|
UserDefinedField |
getOrCreateProjectField(Integer id,
Function<Integer,UserDefinedField> createFunction)
Retrieve or create a user defined field by ID.
|
UserDefinedField |
getOrCreateResourceField(Integer id,
Function<Integer,UserDefinedField> createFunction)
Retrieve or create a user defined field by ID.
|
UserDefinedField |
getOrCreateTaskField(Integer id,
Function<Integer,UserDefinedField> createFunction)
Retrieve or create a user defined field by ID.
|
Collection<UserDefinedField> |
getProjectFields()
Retrieve a collection of project user defined fields.
|
Collection<UserDefinedField> |
getResourceFields()
Retrieve a collection of resource user defined fields.
|
Collection<UserDefinedField> |
getTaskFields()
Retrieve a collection fo task user defined fields.
|
boolean |
isEmpty() |
Iterator<UserDefinedField> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Spliterator<UserDefinedField> |
spliterator() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, stream
public UserDefinedFieldContainer(CustomFieldContainer customFields)
customFields
- custom fields containerpublic Iterator<UserDefinedField> iterator()
iterator
in interface Iterable<UserDefinedField>
iterator
in interface Collection<UserDefinedField>
public Object[] toArray()
toArray
in interface Collection<UserDefinedField>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<UserDefinedField>
public boolean add(UserDefinedField field)
add
in interface Collection<UserDefinedField>
public boolean remove(Object o)
remove
in interface Collection<UserDefinedField>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<UserDefinedField>
public boolean addAll(Collection<? extends UserDefinedField> c)
addAll
in interface Collection<UserDefinedField>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<UserDefinedField>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<UserDefinedField>
public void clear()
clear
in interface Collection<UserDefinedField>
public void forEach(Consumer<? super UserDefinedField> action)
forEach
in interface Iterable<UserDefinedField>
public Spliterator<UserDefinedField> spliterator()
spliterator
in interface Iterable<UserDefinedField>
spliterator
in interface Collection<UserDefinedField>
public int size()
size
in interface Collection<UserDefinedField>
public boolean isEmpty()
isEmpty
in interface Collection<UserDefinedField>
public boolean contains(Object o)
contains
in interface Collection<UserDefinedField>
public Collection<UserDefinedField> getTaskFields()
public Collection<UserDefinedField> getResourceFields()
public Collection<UserDefinedField> getAssignmentFields()
public Collection<UserDefinedField> getProjectFields()
public UserDefinedField getOrCreateTaskField(Integer id, Function<Integer,UserDefinedField> createFunction)
id
- field IDcreateFunction
- function to create a user defined fieldpublic UserDefinedField getOrCreateResourceField(Integer id, Function<Integer,UserDefinedField> createFunction)
id
- field IDcreateFunction
- function to create a user defined fieldpublic UserDefinedField getOrCreateAssignmentField(Integer id, Function<Integer,UserDefinedField> createFunction)
id
- field IDcreateFunction
- function to create a user defined fieldpublic UserDefinedField getOrCreateProjectField(Integer id, Function<Integer,UserDefinedField> createFunction)
id
- field IDcreateFunction
- function to create a user defined fieldpublic UserDefinedField getByUniqueID(Integer id)
id
- entity Unique IDCopyright © 2000–2024 Packwood Software. All rights reserved.