All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ceylon.language.serialization.Element.ceylon Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
"""
   An [[Array]] instance referring to another instance via one 
   of its elements.
 
   For example, given:
 
       value arr = Array({"hello"});
       value context = serialization();
       value refs = context.references(arr);
       assert(is Element elementRef = refs.find((element) => element is Element));
       assert(elementRef.referred(arr) == "hello");
       assert(elementRef.index == 0);
"""
shared sealed interface Element /**/
        satisfies ReachableReference /**/{
    "The index of the element in the Array which makes the reference."
    shared formal Integer index;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy