Examples of Character

Unicode Character Representations

The char data type (and therefore the value that a Character object encapsulates) are based on the original Unicode specification, which defined characters as fixed-width 16-bit entities. The Unicode standard has since been changed to allow for characters whose representation requires more than 16 bits. The range of legal code points is now U+0000 to U+10FFFF, known as Unicode scalar value. (Refer to the definition of the U+n notation in the Unicode standard.)

The set of characters from U+0000 to U+FFFF is sometimes referred to as the Basic Multilingual Plane (BMP). Characters whose code points are greater than U+FFFF are called supplementary characters. The Java 2 platform uses the UTF-16 representation in char arrays and in the String and StringBuffer classes. In this representation, supplementary characters are represented as a pair of char values, the first from the high-surrogates range, (\uD800-\uDBFF), the second from the low-surrogates range (\uDC00-\uDFFF).

A char value, therefore, represents Basic Multilingual Plane (BMP) code points, including the surrogate code points, or code units of the UTF-16 encoding. An int value represents all Unicode code points, including supplementary code points. The lower (least significant) 21 bits of int are used to represent Unicode code points and the upper (most significant) 11 bits must be zero. Unless otherwise specified, the behavior with respect to supplementary characters and surrogate char values is as follows:

In the Java SE API documentation, Unicode code point is used for character values in the range between U+0000 and U+10FFFF, and Unicode code unit is used for 16-bit char values that are code units of the UTF-16 encoding. For more information on Unicode terminology, refer to the Unicode Glossary. @author Lee Boynton @author Guy Steele @author Akira Tanaka @since 1.0

  • javaEffect.characters.Character
    This class is a model to create a character with a race. @author Jack OUTRAN & Thibaut LOCQUET @version 0.1
  • lv.odylab.evemanage.domain.eve.Character
  • model.Character
  • net.cis.common.model.system.Character
    @author SchaeckerM Beinhaltet alle Daten eines Charakters.
  • org.apache.fop.area.inline.Character
    Single character inline area. This inline area holds a single character. @deprecated A TextArea with a single WordArea as its child should be used instead.
  • org.apache.fop.fo.flow.Character
    this class represents the flow object 'fo:character'. Its use is defined by the spec: "The fo:character flow object represents a character that is mapped to a glyph for presentation. It is an atomic unit to the formatter. When the result tree is interpreted as a tree of formatting objects, a character in the result tree is treated as if it were an empty element of type fo:character with a character attribute equal to the Unicode representation of the character. The semantics of an "auto" value for character properties, which is typically their initial value, are based on the Unicode codepoint. Overrides may be specified in an implementation-specific manner." (6.6.3)
  • org.drools.games.adventures.model.Character
  • org.foray.fotree.fo.obj.Character
    A "character" object in XSL-FO.
  • tyrelion.character.Character
    @author imladriel

  • Examples of lv.odylab.evemanage.domain.eve.Character

        @Test
        public void testSynchronizeDeleteApiKey_OneCharacter() {
            Key<User> userKey = new Key<User>(User.class, 1);
            Key<ApiKey> apiKeyKey = new Key<ApiKey>(ApiKey.class, 1);
            ArrayList<Character> characters = new ArrayList<Character>();
            Character character = new Character();
            character.setApiKey(apiKeyKey);
            character.setCharacterID(1L);
            character.setCorporationID(2L);
            character.setCorporationName("corporationName");
            character.setCorporationTicker("corporationTicker");
            ArrayList<String> corporationTitles = new ArrayList<String>();
            corporationTitles.add("corporationTitle");
            character.setCorporationTitles(corporationTitles);
            character.setAllianceID(3L);
            character.setAllianceName("allianceNAme");
            character.setCreatedDate(new Date());
            characters.add(character);

            when(characterDao.getAll(apiKeyKey, userKey)).thenReturn(characters);
            eveSynchronizationService.synchronizeDeleteApiKey(apiKeyKey, userKey);

            verify(characterDao, times(1)).putWithoutChecks(characterCaptor.capture());
            Character capturedCharacter = characterCaptor.getValue();
            assertNull(capturedCharacter.getApiKey());
            assertNull(capturedCharacter.getCorporationID());
            assertNull(capturedCharacter.getCorporationName());
            assertNull(capturedCharacter.getCorporationTicker());
            assertNull(capturedCharacter.getCorporationTitles());
            assertNull(capturedCharacter.getAllianceID());
            assertNull(capturedCharacter.getAllianceName());
            assertNotNull(capturedCharacter.getCreatedDate());
            assertNotNull(capturedCharacter.getUpdatedDate());
            verify(characterSynchronizationService).synchronizeDetachCharacters(characterListCaptor.capture(), eq(userKey));
            List<Character> capturedCharacterList = characterListCaptor.getValue();
            assertEquals(1, capturedCharacterList.size());
            assertEquals(character, capturedCharacterList.get(0));
        }
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

        }

        @Test
        public void testLaunchForDetach() {
            when(googleAppEngineServices.getQueue("default")).thenReturn(queue);
            lv.odylab.evemanage.domain.eve.Character character = new Character();
            character.setCharacterID(1L);
            character.setName("characterName");
            List<PriceSet> priceSets = new ArrayList<PriceSet>();
            PriceSet priceSet1 = new PriceSet();
            priceSet1.setId(2L);
            PriceSet priceSet2 = new PriceSet();
            priceSet2.setId(3L);
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

        }

        @Test
        public void testLaunchForUpdate() {
            when(googleAppEngineServices.getQueue("default")).thenReturn(queue);
            Character character = new Character();
            character.setCharacterID(1L);
            character.setName("characterName");
            character.setCorporationID(2L);
            character.setCorporationName("corporationName");
            character.setCorporationTicker("corporationTicker");
            character.setAllianceID(3L);
            character.setAllianceName("allianceName");
            List<PriceSet> priceSets = new ArrayList<PriceSet>();
            PriceSet priceSet1 = new PriceSet();
            priceSet1.setId(4L);
            PriceSet priceSet2 = new PriceSet();
            priceSet2.setId(5L);
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

            apiKeyCharacterInfos.add(apiKeyCharacterInfo);
            otherApiKey.setCharacterInfos(apiKeyCharacterInfos);
            otherApiKeys.add(otherApiKey);

            ArrayList<Character> characters = new ArrayList<Character>();
            Character character = new Character();
            character.setApiKey(apiKeyKey);
            character.setCharacterID(1L);
            characters.add(character);

            when(apiKeyDao.getAll(userKey)).thenReturn(otherApiKeys);
            when(characterDao.getAll(apiKeyKey, userKey)).thenReturn(characters);
            eveSynchronizationService.synchronizeDeleteApiKey(apiKeyKey, userKey);
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

        }

        @Test
        public void testLaunchForUpdate_NoCorporation() {
            when(googleAppEngineServices.getQueue("default")).thenReturn(queue);
            Character character = new Character();
            character.setCharacterID(1L);
            character.setName("characterName");
            List<PriceSet> priceSets = new ArrayList<PriceSet>();
            PriceSet priceSet1 = new PriceSet();
            priceSet1.setId(4L);
            PriceSet priceSet2 = new PriceSet();
            priceSet2.setId(5L);
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

        }

        @Test
        public void testLaunchForUpdate_NoAlliance() {
            when(googleAppEngineServices.getQueue("default")).thenReturn(queue);
            Character character = new Character();
            character.setCharacterID(1L);
            character.setName("characterName");
            character.setCorporationID(2L);
            character.setCorporationName("corporationName");
            character.setCorporationTicker("corporationTicker");
            List<PriceSet> priceSets = new ArrayList<PriceSet>();
            PriceSet priceSet1 = new PriceSet();
            priceSet1.setId(4L);
            PriceSet priceSet2 = new PriceSet();
            priceSet2.setId(5L);
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

            Key<User> userKey = new Key<User>(User.class, 1);
            List<ApiKey> apiKeys = new ArrayList<ApiKey>();
            ApiKey apiKey = new ApiKey();
            apiKeys.add(apiKey);
            List<Character> characters = new ArrayList<Character>();
            Character character1 = new Character();
            Character character2 = new Character();
            characters.add(character1);
            characters.add(character2);

            when(apiKeyDao.getAll(userKey)).thenReturn(apiKeys);
            when(characterDao.getAll(userKey)).thenReturn(characters);
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

            ApiKey apiKey = new ApiKey();
            apiKeys.add(apiKey);
            apiKey.setCharacterInfos(new ArrayList<ApiKeyCharacterInfo>());
            apiKey.setValid(Boolean.TRUE);
            List<Character> characters = new ArrayList<Character>();
            Character character1 = new Character();
            character1.setCorporationID(1L);
            character1.setCorporationName("corporationName");
            List<String> corporationTitles = new ArrayList<String>();
            corporationTitles.add("title1");
            character1.setCorporationTitles(corporationTitles);
            character1.setCorporationTicker("corporationTicker");
            character1.setAllianceID(2L);
            character1.setAllianceName("allianceName");
            Character character2 = new Character();
            characters.add(character1);
            characters.add(character2);

            when(apiKeyDao.getAll(userKey)).thenReturn(apiKeys);
            when(characterDao.getAll(userKey)).thenReturn(characters);
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

        }

        @Test
        public void testSynchronizeCreateCharacter() {
            Key<User> userKey = new Key<User>(User.class, 1);
            Character character = new Character();
            characterSynchronizationService.synchronizeCreateCharacter(character, userKey);
            verify(userSynchronizationService).synchronizeMainCharacter(userKey);
        }
    View Full Code Here

    Examples of lv.odylab.evemanage.domain.eve.Character

        @Test
        public void testSynchronizeDetachCharacters() {
            Key<User> userKey = new Key<User>(User.class, 1);
            List<Character> characters = new ArrayList<Character>();
            Character character1 = new Character();
            Character character2 = new Character();
            characters.add(character1);
            characters.add(character2);
            characterSynchronizationService.synchronizeDetachCharacters(characters, userKey);
            verify(updateBlueprintTaskLauncher).launchForDetach(1L, character1);
            verify(updateBlueprintTaskLauncher).launchForDetach(1L, character2);
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.