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 testSynchronizeUpdateCharacters() {
            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.synchronizeUpdateCharacters(characters, userKey);
            verify(updateBlueprintTaskLauncher).launchForUpdate(1L, character1);
            verify(updateBlueprintTaskLauncher).launchForUpdate(1L, character2);
    View Full Code Here

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

            characterInfos.add(characterInfo1);
            characterInfos.add(characterInfo2);
            user.setCharacterInfos(characterInfos);

            when(userDao.get(userKey)).thenReturn(user);
            when(characterDao.get(new Key<Character>(Character.class, 2L))).thenReturn(new Character());
            userManagementService.setMainCharacter("characterName2", userKey);

            verify(userDao, times(1)).put(any(lv.odylab.evemanage.domain.user.User.class));
            assertEquals(characterInfo2, user.getMainCharacterInfo());
        }
    View Full Code Here

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

        @Test
        public void testGetAvailableNewCharacterNames() {
            Key<User> userKey = new Key<User>(User.class, 1);
            List<Character> characters = new ArrayList<Character>();
            Character character1 = new Character();
            Character character2 = new Character();
            character1.setName("hcydo");
            character2.setName("pcydo");
            characters.add(character1);
            characters.add(character2);
            List<ApiKey> apiKeys = new ArrayList<ApiKey>();
            ApiKey apiKey1 = new ApiKey();
            List<ApiKeyCharacterInfo> apiKeyCharacterInfos1 = new ArrayList<ApiKeyCharacterInfo>();
    View Full Code Here

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

            when(apiKeyDao.getWithCharacterID(1L, userKey)).thenReturn(apiKeyKey);
            eveManagementService.createCharacter(1L, userKey);

            verify(eveApiDataService, times(1)).populateCharacterData(characterCaptor.capture());
            Character character = characterCaptor.getValue();
            assertEquals(apiKeyKey, character.getApiKey());
            assertEquals(userKey, character.getUser());
            assertEquals(Long.valueOf(1), character.getCharacterID());
            assertNotNull(character.getCreatedDate());
            verify(characterDao, times(1)).put(character, userKey);
            verify(synchronizationService, times(1)).synchronizeCreateCharacter(character, userKey);
        }
    View Full Code Here

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

        }

        @Test
        public void testDeleteCharacter() {
            Key<User> userKey = new Key<User>(User.class, 1);
            Character character = new Character();
            character.setCharacterID(2L);
            when(characterDao.get(new Key<Character>(Character.class, 1))).thenReturn(character);
            eveManagementService.deleteCharacter(1L, userKey);
            verify(characterDao, times(1)).delete(characterKeyCaptor.capture(), eq(userKey));
            assertEquals(1, characterKeyCaptor.getValue().getId());
            verify(synchronizationService).synchronizeDeleteCharacter(2L, userKey);
    View Full Code Here

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

        @Test
        public void testSynchronizeMainCharacter_OneCharacter_NoMainCharacter() {
            Key<User> userKey = new Key<User>(User.class, 1);
            User user = new User();
            List<Character> characters = new ArrayList<Character>();
            Character character = new Character();
            character.setId(1L);
            character.setCharacterID(1L);
            characters.add(character);

            when(userDao.get(userKey)).thenReturn(user);
            when(characterDao.getAll(userKey)).thenReturn(characters);
            when(characterDao.get(new Key<Character>(Character.class, 1))).thenReturn(character);
    View Full Code Here

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

        @Test
        public void testSynchronizeMainCharacter_TwoCharacters_NoMainCharacter() {
            Key<User> userKey = new Key<User>(User.class, 1);
            User user = new User();
            List<Character> characters = new ArrayList<Character>();
            Character character1 = new Character();
            character1.setId(1L);
            character1.setCharacterID(1L);
            Character character2 = new Character();
            character2.setId(2L);
            character2.setCharacterID(2L);
            characters.add(character1);
            characters.add(character2);

            when(userDao.get(userKey)).thenReturn(user);
            when(characterDao.getAll(userKey)).thenReturn(characters);
    View Full Code Here

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

            CharacterInfo characterInfo = new CharacterInfo();
            characterInfo.setId(2L);
            characterInfo.setCharacterID(2L);
            user.setMainCharacterInfo(characterInfo);
            List<Character> characters = new ArrayList<Character>();
            Character character1 = new Character();
            character1.setId(1L);
            character1.setCharacterID(1L);
            Character character2 = new Character();
            character2.setId(2L);
            character2.setCharacterID(2L);
            characters.add(character1);
            characters.add(character2);

            when(userDao.get(userKey)).thenReturn(user);
            when(characterDao.getAll(userKey)).thenReturn(characters);
    View Full Code Here

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

            CharacterInfo characterInfo = new CharacterInfo();
            characterInfo.setId(3L);
            characterInfo.setCharacterID(3L);
            user.setMainCharacterInfo(characterInfo);
            List<Character> characters = new ArrayList<Character>();
            Character character1 = new Character();
            character1.setId(1L);
            character1.setCharacterID(1L);
            Character character2 = new Character();
            character2.setId(2L);
            character2.setCharacterID(2L);
            characters.add(character1);
            characters.add(character2);

            when(userDao.get(userKey)).thenReturn(user);
            when(characterDao.getAll(userKey)).thenReturn(characters);
    View Full Code Here

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

        public void testPopulateCharacterData() throws EveApiException, IOException {
            Key<ApiKey> apiKeyKey = new Key<ApiKey>(ApiKey.class, 1);
            ApiKey apiKey = new ApiKey();
            apiKey.setApiKeyUserID(2L);
            apiKey.setEncodedApiKeyString(Base64.encodeBytes("encryptedApiKey".getBytes()));
            Character character = new Character();
            character.setCharacterID(1L);
            character.setApiKey(apiKeyKey);
            CharacterSheetDto characterSheetDto = new CharacterSheetDto();
            characterSheetDto.setCharacterID(1L);
            characterSheetDto.setName("characterName");
            characterSheetDto.setCorporationID(4L);
            characterSheetDto.setCorporationName("corporationName");
            List<String> corporationTitles = new ArrayList<String>();
            corporationTitles.add("corporationTitle1");
            corporationTitles.add("corporationTitle2");
            characterSheetDto.setCorporationTitles(corporationTitles);
            CorporationSheetDto corporationSheetDto = new CorporationSheetDto();
            corporationSheetDto.setTicker("ticker");
            corporationSheetDto.setAllianceID(5L);
            corporationSheetDto.setAllianceName("allianceName");

            when(securityManager.decrypt("encryptedApiKey".getBytes())).thenReturn("apiKeyString".getBytes());
            when(apiKeyDao.get(apiKeyKey)).thenReturn(apiKey);
            when(eveApiGateway.getCharacterSheet("apiKeyString", 2L, 1L)).thenReturn(characterSheetDto);
            when(eveApiGateway.getCorporationSheet(4L)).thenReturn(corporationSheetDto);
            eveApiDataService.populateCharacterData(character);

            assertEquals("characterName", character.getName());
            assertEquals(Long.valueOf(4), character.getCorporationID());
            assertEquals("corporationName", character.getCorporationName());
            assertEquals(2, character.getCorporationTitles().size());
            assertEquals("corporationTitle1", character.getCorporationTitles().get(0));
            assertEquals("corporationTitle2", character.getCorporationTitles().get(1));
            assertEquals("corporationTitle2", character.getCorporationTitles().get(1));
            assertEquals("ticker", character.getCorporationTicker());
            assertEquals(Long.valueOf(5), character.getAllianceID());
            assertEquals("allianceName", character.getAllianceName());
            assertNotNull(character.getUpdatedDate());
            assertNull(character.getCreatedDate());
        }
    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.