Java Number Min Value minSPSForBandCode(String bandCode)

Here you can find the source of minSPSForBandCode(String bandCode)

Description

min SPS For Band Code

License

Open Source License

Declaration

public static float minSPSForBandCode(String bandCode) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static float minSPSForBandCode(String bandCode) {
        return minSPSForBandCode(bandCode.charAt(0));
    }/* ww w  .jav a 2s  .  c o m*/

    public static float minSPSForBandCode(char bandCode) {
        float minSps = 0;
        switch (bandCode) {
        case 'F':
        case 'G':
            minSps = 1000;
            break;
        case 'D':
        case 'C':
            minSps = 250;
            break;
        case 'E':
            minSps = 80;
            break;
        case 'S':
            minSps = 10;
            break;
        case 'H':
            minSps = 80;
            break;
        case 'B':
            minSps = 10;
            break;
        case 'M':
            minSps = 1;
            break;
        case 'L':
            minSps = 1;
            break;
        case 'V':
            minSps = 0.1f;
            break;
        case 'U':
            minSps = 0.01f;
            break;
        case 'R':
            minSps = 0.001f;
            break;
        default:
            minSps = 1;
        }
        return minSps;
    }
}

Related

  1. minRunLength(int n)
  2. minShareLifetime(long shareLifetime1, long shareLifetime2)
  3. minSignedIntForBitSize(final int bitSize)
  4. minSignedIntForBitSize_noCheck(final int bitSize)
  5. minSize(String str, int min, boolean nullCheck)
  6. minToS(long s)
  7. minUnsigned(long a, long b)
  8. minusxx(String str11, String str22)
  9. minValue(int bits)