public class IfcCollection<T> extends IfcCollectionA implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<T>
IfcCollection represents a collection of IFC elements
var products = new IfcCollection
| Constructor and Description |
|---|
IfcCollection(Class<T> typeOfT)
Initializes a new instance of the collections class class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T item)
Adds the specified item to the collection.
|
boolean |
contains(T item)
Determines whether a collection [contains] [the specified item].
|
T |
firstOrDefault()
Firsts the or default item from the collection that satisfy the predicate.
|
T |
firstOrDefault(IfcPredicate<T> predicate)
Firsts the or default item from the collection that satisfy the predicate.
|
T |
get_Item(int index) |
int |
getCount()
Gets the count of items in the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T> |
iterator()
Returns an enumerator that iterates through the collection.
|
<TOut> IfcCollection<TOut> |
ofType(Class<TOut> typeOfTOut) |
<TOut> IfcCollection<TOut> |
select(Class<TOut> typeOfTOut,
IfcSelectPredicate<T,TOut> select) |
void |
set_Item(int index,
T value) |
com.aspose.ms.System.Collections.Generic.IGenericList<T> |
toList()
To the list.
|
boolean |
tryAddItemAsObject(Object item)
Tries to add item as object.
|
IfcCollection<T> |
where(IfcPredicate<T> predicate) |
<TOut> IfcCollection<TOut> |
whereOfType(Class<TOut> typeOfTOut,
IfcPredicate<TOut> predicate) |
getTypeOfTequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final int getCount()
Gets the count of items in the collection.
public final T get_Item(int index)
public final void set_Item(int index,
T value)
public boolean tryAddItemAsObject(Object item)
Tries to add item as object. Returns true when if operation was success
tryAddItemAsObject in class IfcCollectionApublic final void add(T item)
Adds the specified item to the collection.
public final boolean contains(T item)
Determines whether a collection [contains] [the specified item].
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T> iterator()
Returns an enumerator that iterates through the collection.
public final <TOut> IfcCollection<TOut> whereOfType(Class<TOut> typeOfTOut, IfcPredicate<TOut> predicate)
public final IfcCollection<T> where(IfcPredicate<T> predicate)
public final <TOut> IfcCollection<TOut> ofType(Class<TOut> typeOfTOut)
public final <TOut> IfcCollection<TOut> select(Class<TOut> typeOfTOut, IfcSelectPredicate<T,TOut> select)
public final T firstOrDefault(IfcPredicate<T> predicate)
Firsts the or default item from the collection that satisfy the predicate.
predicate - The predicate.public final T firstOrDefault()
Firsts the or default item from the collection that satisfy the predicate.
public final com.aspose.ms.System.Collections.Generic.IGenericList<T> toList()
To the list.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.