Java Code Examples for com.sun.corba.se.spi.ior.Identifiable#getId()
The following examples show how to use
com.sun.corba.se.spi.ior.Identifiable#getId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IdentifiableContainerBase.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 2
Source File: IdentifiableContainerBase.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 3
Source File: IdentifiableContainerBase.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 4
Source File: IdentifiableContainerBase.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 5
Source File: IdentifiableContainerBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 6
Source File: IdentifiableContainerBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 7
Source File: IdentifiableContainerBase.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 8
Source File: IdentifiableContainerBase.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 9
Source File: IdentifiableContainerBase.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example 10
Source File: IdentifiableContainerBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }