ceylon
Sort:
popular
|
newest
The Ceylon language module containing the core definitions
referred to by the [language specification][spec], along
with some basic functionality of use to most programs:
- The [[root package|package ceylon.language]] defines
general-purpose functionality including support for
[[numbers|Numeric]] and [[character strings|String]],
[[streams|Iterable]] and [[sequences|Sequential]],
[[exceptions|Throwable]], and [[null values|Null]].
- The Ceylon _metamodel_ is defined in
[[package ...
Last Release on Feb 13, 2021
Relocated → org.ceylon-lang »
ceylon.language
Library providing general-purpose mutable lists, sets, and
maps.
The following interfaces define abstract mutable collection
types:
- [[MutableList]] is a mutable [[List]],
- [[MutableSet]] is a mutable [[Set]], and
- [[MutableMap]] is a mutable [[Map]].
These interfaces define abstract sorted collection types:
- [[SortedSet]] is a sorted [[Set]], and
- [[SortedMap]] is a sorted [[Map]].
In addition, dedicated [[Stack]] and [[Queue]] interfaces
are defined, representing specialized kinds of ...
Last Release on Feb 13, 2021
A set of adaptors for types belonging to the Java language
or Java SDK. Includes:
- a set of functions for instantiating Java array types
given a stream of values, for example,
[[createJavaIntArray]], [[createJavaFloatArray]],
[[createJavaByteArray]], [[createJavaBooleanArray]],
[[createJavaObjectArray]], and
[[createJavaStringArray]],
- a set of functions for converting between Ceylon's
[[Array]] class and Java array types, for example,
[[javaIntArray]], [[javaFloatArray]], ...
Last Release on Feb 13, 2021
Contains everything required to parse and serialise JSON
data.
Sample usage for parsing and accessing JSON:
import ceylon.json {
parse, Object = Object
}
String getAuthor(String json){
value parsedJson = parse(json);
"author must be a string"
assert(is Object parsedJson, is String author = parsedJson["author"]);
return author;
}
Alternatively, this variation will result in an
[[InvalidTypeException]] instead of an [[AssertionError]]
if the input ...
Last Release on Feb 13, 2021